.mail-editor-shell {
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
}

.mail-editor-mode {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.mail-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.mail-editor-toolbar .btn {
    min-width: 36px;
}

.mail-rich-editor {
    min-height: 360px;
    padding: 14px;
    outline: none;
    overflow-y: auto;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.mail-rich-editor:empty:before {
    color: #adb5bd;
    content: attr(data-placeholder);
}

.mail-plain-editor {
    min-height: 360px;
    resize: vertical;
}

.mail-html-view {
    min-height: 250px;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.mail-html-view img {
    max-width: 100%;
    height: auto;
}

.mail-html-view table {
    max-width: 100%;
    border-collapse: collapse;
}

.mail-html-view th,
.mail-html-view td {
    padding: 5px;
    border: 1px solid #dee2e6;
}


.mail-editor-color-control {
    position: relative;
    display: inline-flex;
    width: 36px;
    height: 31px;
    margin: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.mail-editor-color-control:hover {
    background: #e9ecef;
}

.mail-editor-color-label {
    font-weight: 700;
    line-height: 1;
}

.mail-editor-color-control input[type="color"] {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 26px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mail-editor-color-control input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.mail-editor-color-control input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 2px 0 0 0;
}

.mail-editor-color-control input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 2px 0 0 0;
}

/* MAILSHARE_SHARED_PAGE_STYLES_20260806
 * Bootstrapだけでは保持できない既存表示を共通化。
 */

/* メール設定：署名プレビュー */
.signature-preview {
    max-width: 440px;
    max-height: 100px;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-word;
    color: #6c757d;
    font-size: 13px;
}

/* 管理メニュー */
.manage-card-link {
    color: inherit;
    text-decoration: none;
}

.manage-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.manage-card {
    height: 100%;
    transition: transform .12s ease, box-shadow .12s ease;
}

.manage-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .35rem .9rem rgba(0, 0, 0, .12);
}

.manage-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f3f5;
    font-size: 1.25rem;
}

/* MAILSHARE_BOOTSTRAP_CLEANUP_07_SHARED_CSS_20260806
 * Bootstrapだけでは保持できない既存表示を共通化。
 */

/* 店舗DB更新管理：AdminLTE small-boxアイコン */
.mailshare-migrations-page .small-box .icon > i {
    top: 15px;
    font-size: 58px;
}

/* メールアカウント接続テスト */
.mailshare-mail-account-test .test-status-icon {
    font-size: 46px;
}

.mailshare-mail-account-test .test-result-message {
    white-space: pre-wrap;
}

/* MAILSHARE_BOOTSTRAP_CLEANUP_08_SHARED_CSS_20260806
 * ユーザー・名簿関連4ページの必要CSSを共通化。
 * メールグループ設定の未使用CSSは移さず削除。
 */

/* portal/kanri/user-directory/index.php */
.directory-table thead th { background:#343a40; color:#fff; white-space:nowrap; vertical-align:middle; }
        .directory-table td { vertical-align:middle; }
        .directory-name { min-width:160px; font-weight:600; }
        .directory-org { min-width:180px; }
        .directory-contact { min-width:190px; }
        .directory-empty { color:#adb5bd; }
    
        /* MAILSHARE_MOBILE_USER_DIRECTORY_ACTION_FIX_20260804 */
        @media (max-width: 767.98px) {
            .content-wrapper .table-responsive {
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch;
            }

            .content-wrapper .table-responsive table {
                min-width: 720px !important;
            }

            .content-wrapper .table-responsive th:last-child,
            .content-wrapper .table-responsive td:last-child {
                min-width: 190px !important;
                width: 190px !important;
                white-space: normal !important;
            }

            .content-wrapper .table-responsive td:last-child {
                padding: .45rem !important;
            }

            .content-wrapper .table-responsive td:last-child .btn,
            .content-wrapper .table-responsive td:last-child a.btn,
            .content-wrapper .table-responsive td:last-child button.btn {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: auto !important;
                min-width: 82px !important;
                min-height: 36px !important;
                height: 36px !important;
                margin: .15rem !important;
                padding: .3rem .55rem !important;
                font-size: .875rem !important;
                line-height: 1 !important;
                white-space: nowrap !important;
                word-break: keep-all !important;
                overflow-wrap: normal !important;
                writing-mode: horizontal-tb !important;
            }

            .content-wrapper .table-responsive td:last-child .btn i,
            .content-wrapper .table-responsive td:last-child a.btn i,
            .content-wrapper .table-responsive td:last-child button.btn i {
                flex: 0 0 auto;
                margin-right: .3rem !important;
                line-height: 1 !important;
                writing-mode: horizontal-tb !important;
            }

            .content-wrapper .table-responsive td:last-child form {
                display: inline-block !important;
                margin: 0 !important;
            }
        }
        /* /MAILSHARE_MOBILE_USER_DIRECTORY_ACTION_FIX_20260804 */

/* portal/kanri/user-directory/detail.php */
.directory-detail-wrap {
            max-width: 1180px;
        }
        .directory-profile-head {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid #dee2e6;
            background: #fff;
        }
        .directory-profile-avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 64px;
            background: #eef2f5;
            color: #6c757d;
            font-size: 2rem;
        }
        .directory-profile-name {
            margin: 0 0 .2rem;
            font-size: 1.5rem;
            font-weight: 600;
        }
        .directory-profile-sub {
            color: #6c757d;
        }
        .directory-detail-table {
            margin: 0;
        }
        .directory-detail-table th,
        .directory-detail-table td {
            vertical-align: middle;
            border-top: 1px solid #e5e8eb;
            padding: .8rem 1rem;
        }
        .directory-detail-table th {
            width: 190px;
            background: #f7f8fa;
            color: #495057;
            font-weight: 600;
            white-space: nowrap;
        }
        .directory-detail-table td {
            word-break: break-word;
        }
        .directory-detail-empty {
            color: #adb5bd;
        }
        .directory-memo {
            min-height: 72px;
            white-space: pre-wrap;
        }
        .directory-actions {
            display: flex;
            flex-wrap: wrap;
            gap: .4rem;
        }
        @media (max-width: 767.98px) {
            .directory-detail-table,
            .directory-detail-table tbody,
            .directory-detail-table tr,
            .directory-detail-table th,
            .directory-detail-table td {
                display: block;
                width: 100%;
            }
            .directory-detail-table th {
                padding-bottom: .3rem;
                border-bottom: 0;
            }
            .directory-detail-table td {
                padding-top: .35rem;
            }
        }

/* portal/kanri/user-directory/edit.php */
.directory-edit-wrap {
            max-width: 1180px;
        }
        .directory-form-row {
            display: grid;
            grid-template-columns: 190px minmax(0, 1fr);
            gap: 1rem;
            align-items: start;
            padding: .75rem 1rem;
            border-bottom: 1px solid #e5e8eb;
            margin: 0;
        }
        .directory-form-row:last-child {
            border-bottom: 0;
        }
        .directory-form-label {
            margin: 0;
            padding-top: .45rem;
            font-weight: 600;
            color: #495057;
        }
        .directory-form-control {
            min-width: 0;
            max-width: 760px;
        }
        .directory-form-control .form-control {
            width: 100%;
        }
        .directory-readonly {
            background: #f7f8fa;
        }
        .directory-section-title {
            padding: .65rem 1rem;
            border-top: 1px solid #dee2e6;
            border-bottom: 1px solid #dee2e6;
            background: #f7f8fa;
            font-weight: 600;
        }
        .directory-edit-actions {
            padding-left: 220px;
        }
        @media (max-width: 767.98px) {
            .directory-form-row {
                grid-template-columns: 1fr;
                gap: .35rem;
            }
            .directory-form-label {
                padding-top: 0;
            }
            .directory-edit-actions {
                padding-left: 1rem;
            }
        }

/* portal/kanri/users/index.php */
.portal-user-table thead th {
            background: #343a40;
            color: #fff;
            white-space: nowrap;
            vertical-align: middle;
        }
        .portal-user-table td { vertical-align: middle; }
        .portal-user-name { min-width: 170px; font-weight: bold; }
        .portal-user-action { min-width: 260px; }
        .portal-user-two-factor { min-width: 145px; white-space: nowrap; }
        .portal-user-search .form-group { margin-bottom: .75rem; }

        /* MAILSHARE_USERS_MOBILE_HEADER_SPACING_FIX_20260806 */
        @media (max-width: 767.98px) {
            .portal-user-list-card > .card-header {
                display: flex;
                flex-direction: column;
                align-items: stretch;
                gap: .75rem;
                padding: .75rem;
            }

            .portal-user-list-card > .card-header > .card-title {
                float: none;
                width: 100%;
                margin: 0;
                line-height: 1.4;
            }

            .portal-user-list-card > .card-header > .card-tools {
                float: none !important;
                display: grid !important;
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: .5rem !important;
                width: 100% !important;
                margin: 0 !important;
            }

            .portal-user-list-card > .card-header > .card-tools > * {
                width: 100% !important;
                min-width: 0 !important;
                margin: 0 !important;
            }

            .portal-user-list-card > .card-header > .card-tools > :last-child {
                grid-column: 1 / -1;
            }

            .portal-user-list-card > .card-header > .card-tools .btn {
                min-height: 42px;
            }
        }
        /* /MAILSHARE_USERS_MOBILE_HEADER_SPACING_FIX_20260806 */

        /* MAILSHARE_USERS_MOBILE_TABLE_OVERFLOW_FIX_20260806 */
        @media (max-width: 767.98px) {
            .portal-user-list-card .table-responsive {
                width: 100%;
                max-width: 100%;
                overflow-x: auto !important;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
            }

            .portal-user-list-card .portal-user-table {
                width: 1220px !important;
                min-width: 1220px !important;
                table-layout: auto !important;
            }

            .portal-user-list-card .portal-user-table th,
            .portal-user-list-card .portal-user-table td {
                box-sizing: border-box;
            }

            .portal-user-list-card .portal-user-table th:nth-child(1),
            .portal-user-list-card .portal-user-table td:nth-child(1) {
                width: 170px;
                min-width: 170px;
            }

            .portal-user-list-card .portal-user-table th:nth-child(2),
            .portal-user-list-card .portal-user-table td:nth-child(2) {
                width: 130px;
                min-width: 130px;
            }

            .portal-user-list-card .portal-user-table th:nth-child(3),
            .portal-user-list-card .portal-user-table td:nth-child(3) {
                width: 210px;
                min-width: 210px;
            }

            .portal-user-list-card .portal-user-table th:nth-child(4),
            .portal-user-list-card .portal-user-table td:nth-child(4) {
                width: 90px;
                min-width: 90px;
            }

            .portal-user-list-card .portal-user-table th:nth-child(5),
            .portal-user-list-card .portal-user-table td:nth-child(5) {
                width: 100px;
                min-width: 100px;
            }

            .portal-user-list-card .portal-user-table th:nth-child(6),
            .portal-user-list-card .portal-user-table td:nth-child(6) {
                width: 140px;
                min-width: 140px;
            }

            .portal-user-list-card .portal-user-table th:nth-child(7),
            .portal-user-list-card .portal-user-table td:nth-child(7),
            .portal-user-list-card .portal-user-table th:nth-child(8),
            .portal-user-list-card .portal-user-table td:nth-child(8) {
                width: 145px;
                min-width: 145px;
                white-space: nowrap !important;
            }

            .portal-user-list-card .portal-user-table th:nth-child(9),
            .portal-user-list-card .portal-user-table td:nth-child(9) {
                width: 180px !important;
                min-width: 180px !important;
                max-width: 180px !important;
                white-space: normal !important;
            }

            .portal-user-list-card .portal-user-action .btn,
            .portal-user-list-card .portal-user-action form {
                margin: .15rem .1rem !important;
            }
        }
        /* /MAILSHARE_USERS_MOBILE_TABLE_OVERFLOW_FIX_20260806 */

        /* MAILSHARE_USERS_MOBILE_TABLE_LEFT_ALIGN_FIX_20260806 */
        @media (max-width: 767.98px) {
            .portal-user-list-card .portal-user-table th,
            .portal-user-list-card .portal-user-table td {
                text-align: left !important;
            }

            .portal-user-list-card .portal-user-action {
                text-align: left !important;
            }

            .portal-user-list-card .portal-user-action form {
                display: inline-block !important;
                vertical-align: top;
            }
        }
        /* /MAILSHARE_USERS_MOBILE_TABLE_LEFT_ALIGN_FIX_20260806 */

/* ページ内style属性から移動 */
.directory-form-control-wide {
    max-width: 900px;
}

/* MAILSHARE_BOOTSTRAP_CLEANUP_11_SHARED_CSS_20260807
 * ログイン・パスワード再設定・確認用5ページのCSSを共通化。
 * ページ専用bodyクラスで影響範囲を限定。
 */

/* admin/index.php */
body.mailshare-admin-login-page {
            color-scheme: light;
            --bg: #eef2f7;
            --card: #ffffff;
            --text: #243247;
            --muted: #6f7f93;
            --border: #d8e0ea;
            --primary: #315f9f;
            --primary-hover: #284f86;
            --danger-bg: #fff1f1;
            --danger-border: #f2b9b9;
            --danger-text: #a72c2c;
        }
        body.mailshare-admin-login-page, body.mailshare-admin-login-page * { box-sizing: border-box; }
        body.mailshare-admin-login-page, body.mailshare-admin-login-page { min-height: 100%; }
        body.mailshare-admin-login-page {
            margin: 0;
            background: var(--bg);
            color: var(--text);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", Meiryo, sans-serif;
        }
        body.mailshare-admin-login-page .page {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 32px 16px;
        }
        body.mailshare-admin-login-page .login-wrap { width: 100%; max-width: 440px; }
        body.mailshare-admin-login-page .brand {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 13px;
            margin-bottom: 22px;
        }
        body.mailshare-admin-login-page .brand-mark {
            width: 48px;
            height: 48px;
            display: grid;
            place-items: center;
            border-radius: 13px;
            background: #263d5b;
            color: white;
            box-shadow: 0 8px 20px rgba(36, 50, 71, .18);
        }
        body.mailshare-admin-login-page .brand-mark svg { width: 29px; height: 29px; }
        body.mailshare-admin-login-page .brand-name { font-size: 29px; line-height: 1.1; font-weight: 750; letter-spacing: .01em; }
        body.mailshare-admin-login-page .brand-name span { font-weight: 400; }
        body.mailshare-admin-login-page .brand-sub { margin-top: 5px; color: var(--muted); font-size: 13px; letter-spacing: .05em; }
        body.mailshare-admin-login-page .card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 10px;
            box-shadow: 0 14px 35px rgba(29, 47, 70, .10);
            padding: 28px 26px 24px;
        }
        body.mailshare-admin-login-page .card h1 { margin: 0 0 7px; text-align: center; font-size: 19px; font-weight: 700; }
        body.mailshare-admin-login-page .card-description { margin: 0 0 22px; text-align: center; color: var(--muted); font-size: 13px; }
        body.mailshare-admin-login-page .notice {
            margin-bottom: 18px;
            padding: 11px 13px;
            border: 1px solid var(--danger-border);
            border-radius: 7px;
            background: var(--danger-bg);
            color: var(--danger-text);
            font-size: 13px;
            line-height: 1.5;
        }
        body.mailshare-admin-login-page .field { margin-bottom: 15px; }
        body.mailshare-admin-login-page .field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 650; }
        body.mailshare-admin-login-page .input-wrap { position: relative; }
        body.mailshare-admin-login-page .field input {
            width: 100%;
            height: 46px;
            border: 1px solid #c8d3df;
            border-radius: 7px;
            padding: 0 43px 0 13px;
            background: #fff;
            color: var(--text);
            font-size: 16px;
            outline: none;
            transition: border-color .15s, box-shadow .15s;
        }
        body.mailshare-admin-login-page .field input:focus { border-color: #6d95ca; box-shadow: 0 0 0 3px rgba(49,95,159,.14); }
        body.mailshare-admin-login-page .toggle-password {
            position: absolute;
            top: 50%;
            right: 7px;
            transform: translateY(-50%);
            width: 34px;
            height: 34px;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: #708096;
            cursor: pointer;
            font-size: 17px;
        }
        body.mailshare-admin-login-page .login-button {
            width: 100%;
            height: 47px;
            border: 0;
            border-radius: 7px;
            background: var(--primary);
            color: #fff;
            font-size: 16px;
            font-weight: 700;
            letter-spacing: .03em;
            cursor: pointer;
            transition: background .15s, transform .05s;
        }
        body.mailshare-admin-login-page .login-button:hover { background: var(--primary-hover); }
        body.mailshare-admin-login-page .login-button:active { transform: translateY(1px); }
        body.mailshare-admin-login-page .store-link { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
        body.mailshare-admin-login-page .store-link a { color: var(--primary); text-decoration: none; font-weight: 650; }
        body.mailshare-admin-login-page .store-link a:hover { text-decoration: underline; }
        body.mailshare-admin-login-page .footnote { margin-top: 16px; text-align: center; color: #8a98aa; font-size: 12px; }
        @media (max-width: 520px) {
            body.mailshare-admin-login-page .page { align-items: flex-start; padding-top: 45px; }
            body.mailshare-admin-login-page .card { padding: 24px 18px 21px; }
            body.mailshare-admin-login-page .brand-name { font-size: 25px; }
        }

/* admin/setup/check_works.php */
body.mailshare-check-works-page { font-family: sans-serif; padding: 20px; }
body.mailshare-check-works-page table { border-collapse: collapse; width: 100%; margin-bottom: 30px; }
body.mailshare-check-works-page th, body.mailshare-check-works-page td { border: 1px solid #ccc; padding: 8px; vertical-align: top; }
body.mailshare-check-works-page th { background: #f5f5f5; white-space: nowrap; }
body.mailshare-check-works-page td.empty { background: #fff4f4; }
body.mailshare-check-works-page .small { color: #666; font-size: 12px; }

/* portal/index.php */
body.mailshare-portal-login-page {
            background:
                linear-gradient(135deg,
                    #eef4fb 0%,
                    #f8fafc 100%);
        }

        body.mailshare-portal-login-page .login-box {
            width: 420px;
        }

        body.mailshare-portal-login-page .login-logo {
            margin-bottom: 22px;
        }

        body.mailshare-portal-login-page .login-logo a {
            color: #273444;
            font-weight: 600;
        }

        body.mailshare-portal-login-page .company-box {
            margin-bottom: 20px;
            padding: 15px;
            border: 1px solid #d8e3ef;
            border-radius: 5px;
            background: #f5f9fd;
            text-align: center;
        }

        body.mailshare-portal-login-page .company-name {
            margin-bottom: 3px;
            color: #1f5f99;
            font-size: 20px;
            font-weight: bold;
        }

        body.mailshare-portal-login-page .company-code {
            color: #6c757d;
            font-size: 13px;
        }

        body.mailshare-portal-login-page .login-card-body {
            border-radius: 6px;
        }

        body.mailshare-portal-login-page .system-title {
            color: #6c757d;
            font-size: 14px;
        }

        body.mailshare-portal-login-page .change-company {
            margin-top: 8px;
            font-size: 12px;
        }

        @media (max-width: 500px) {
            body.mailshare-portal-login-page .login-box {
                width: calc(100% - 30px);
            }
        }

/* portal/password-forgot.php */
body.mailshare-password-forgot-page {background:linear-gradient(135deg,#eef4fb,#f8fafc)}body.mailshare-password-forgot-page .login-box {width:440px}body.mailshare-password-forgot-page .login-logo a {color:#273444;font-weight:600}@media(max-width:500px){body.mailshare-password-forgot-page .login-box {width:calc(100% - 30px)}}
body.mailshare-password-forgot-page .mailshare-password-reset-note {font-size:14px}

/* portal/password-reset.php */
body.mailshare-password-reset-page {background:linear-gradient(135deg,#eef4fb,#f8fafc)}body.mailshare-password-reset-page .login-box {width:440px}body.mailshare-password-reset-page .login-logo a {color:#273444;font-weight:600}@media(max-width:500px){body.mailshare-password-reset-page .login-box {width:calc(100% - 30px)}}

/* MAILSHARE_BOOTSTRAP_CLEANUP_12_SHARED_CSS_20260807
 * メールアカウント設定・メールテンプレート5ページ。
 * 現在のmail-editor.css末尾へ追加する断片。
 */

/* メールアカウント追加・編集 共通 */
/* アドレス帳の登録画面に合わせた左ラベル形式 */
body.mailshare-mail-account-form-page .portal-left-label-form {
    width: 100%;
    max-width: 920px;
    margin-left: 0;
    margin-right: auto;
}
body.mailshare-mail-account-form-page .portal-left-label-form .card {
    width: 100%;
}
body.mailshare-mail-account-form-page .portal-left-label-form .card-body > .row {
    display: block;
    margin-left: 0;
    margin-right: 0;
}
body.mailshare-mail-account-form-page .portal-left-label-form .card-body > .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}
body.mailshare-mail-account-form-page .portal-left-label-form .form-group {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 5px;
    align-items: start;
    margin-bottom: 14px;
}
body.mailshare-mail-account-form-page .portal-left-label-form .form-group > label {
    margin: 7px 0 0;
    font-weight: 600;
}
body.mailshare-mail-account-form-page .portal-left-label-form .form-group > .form-control, body.mailshare-mail-account-form-page .portal-left-label-form .form-group > .input-group, body.mailshare-mail-account-form-page .portal-left-label-form .form-group > .custom-control, body.mailshare-mail-account-form-page .portal-left-label-form .form-group > .custom-file, body.mailshare-mail-account-form-page .portal-left-label-form .form-group > textarea, body.mailshare-mail-account-form-page .portal-left-label-form .form-group > select, body.mailshare-mail-account-form-page .portal-left-label-form .form-group > input {
    grid-column: 2;
    min-width: 0;
}
body.mailshare-mail-account-form-page .portal-left-label-form .form-group > small, body.mailshare-mail-account-form-page .portal-left-label-form .form-group > .form-text, body.mailshare-mail-account-form-page .portal-left-label-form .form-group > .text-muted, body.mailshare-mail-account-form-page .portal-left-label-form .form-group > .invalid-feedback {
    grid-column: 2;
    margin-top: 0;
}
body.mailshare-mail-account-form-page .portal-left-label-form .form-group > br {
    display: none;
}
body.mailshare-mail-account-form-page .portal-left-label-form .card-footer {
    padding-left: 210px;
}
@media (max-width: 767.98px) {
    body.mailshare-mail-account-form-page .portal-left-label-form .form-group {
        display: block;
    }
    body.mailshare-mail-account-form-page .portal-left-label-form .form-group > label {
        display: block;
        margin: 0 0 6px;
    }
    body.mailshare-mail-account-form-page .portal-left-label-form .card-footer {
        padding-left: 1.25rem;
    }
}

/* portal/kanri/mail-accounts/index.php */
body.mailshare-mail-account-index-page .account-table thead th {
            background: #343a40;
            color: #fff;
            white-space: nowrap;
            vertical-align: middle;
        }

        body.mailshare-mail-account-index-page .account-table td {
            vertical-align: middle;
        }

        body.mailshare-mail-account-index-page .account-name {
            min-width: 180px;
            font-weight: bold;
        }

        body.mailshare-mail-account-index-page .server-info {
            min-width: 180px;
            font-size: 13px;
        }

        body.mailshare-mail-account-index-page .account-action {
            min-width: 190px;
        }

        body.mailshare-mail-account-index-page .receive-error {
            max-width: 320px;
            color: #dc3545;
            word-break: break-word;
        }

        body.mailshare-mail-account-index-page .history-import-cell {
            min-width: 260px;
        }

        body.mailshare-mail-account-index-page .history-import-cell .progress {
            height: 8px;
            margin: 6px 0;
        }

        body.mailshare-mail-account-index-page .history-import-actions form, body.mailshare-mail-account-index-page .account-action form {
            display: inline-block;
            margin: 2px 1px;
        }

        body.mailshare-mail-account-index-page .account-action {
            min-width: 260px;
        }
    
/* MAIL_ACCOUNT_RESPONSIVE_LAYOUT */

/* PC：横スクロールを使わず画面幅内へ収める */
body.mailshare-mail-account-index-page .account-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

body.mailshare-mail-account-index-page .card-body.table-responsive {
    overflow-x: visible !important;
}

body.mailshare-mail-account-index-page .account-table th, body.mailshare-mail-account-index-page .account-table td, body.mailshare-mail-account-index-page .account-table .account-name, body.mailshare-mail-account-index-page .account-table .server-info, body.mailshare-mail-account-index-page .account-table .history-import-cell, body.mailshare-mail-account-index-page .account-table .account-action {
    min-width: 0 !important;
    max-width: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: middle;
}

body.mailshare-mail-account-index-page .account-table th {
    padding: 0.55rem 0.4rem;
    font-size: 0.82rem;
}

body.mailshare-mail-account-index-page .account-table td {
    padding: 0.55rem 0.4rem;
    font-size: 0.82rem;
}

body.mailshare-mail-account-index-page .account-table th:nth-child(1), body.mailshare-mail-account-index-page .account-table td:nth-child(1) { width: 9%; }

body.mailshare-mail-account-index-page .account-table th:nth-child(2), body.mailshare-mail-account-index-page .account-table td:nth-child(2) { width: 12%; }

body.mailshare-mail-account-index-page .account-table th:nth-child(3), body.mailshare-mail-account-index-page .account-table td:nth-child(3), body.mailshare-mail-account-index-page .account-table th:nth-child(4), body.mailshare-mail-account-index-page .account-table td:nth-child(4) { width: 10%; }

body.mailshare-mail-account-index-page .account-table th:nth-child(5), body.mailshare-mail-account-index-page .account-table td:nth-child(5) { width: 7%; }

body.mailshare-mail-account-index-page .account-table th:nth-child(6), body.mailshare-mail-account-index-page .account-table td:nth-child(6) { width: 7%; }

body.mailshare-mail-account-index-page .account-table th:nth-child(7), body.mailshare-mail-account-index-page .account-table td:nth-child(7) { width: 6%; }

body.mailshare-mail-account-index-page .account-table th:nth-child(8), body.mailshare-mail-account-index-page .account-table td:nth-child(8) { width: 11%; }

body.mailshare-mail-account-index-page .account-table th:nth-child(9), body.mailshare-mail-account-index-page .account-table td:nth-child(9) { width: 28%; }

body.mailshare-mail-account-index-page .account-action form, body.mailshare-mail-account-index-page .history-import-actions form {
    display: inline-block;
    margin: 2px;
}

body.mailshare-mail-account-index-page .account-action .btn, body.mailshare-mail-account-index-page .history-import-actions .btn {
    white-space: normal;
}

/* Mobile card layout is centralized in portal-mobile-final.css. */

/* portal/kanri/mail-templates/categories.php */
/* MAILSHARE_MOBILE_TEMPLATE_CATEGORY_FIX_20260804 */
@media (max-width: 767.98px) {
    body.mailshare-template-categories-page .content-wrapper .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    body.mailshare-template-categories-page .content-wrapper .table-responsive table {
        min-width: 650px !important;
    }

    body.mailshare-template-categories-page .content-wrapper .table-responsive th:last-child, body.mailshare-template-categories-page .content-wrapper .table-responsive td:last-child {
        width: 145px !important;
        min-width: 145px !important;
        white-space: nowrap !important;
    }

    body.mailshare-template-categories-page .content-wrapper .table-responsive td:last-child {
        padding: .4rem !important;
    }

    body.mailshare-template-categories-page .content-wrapper .table-responsive td:last-child form {
        display: inline-block !important;
        margin: 0 !important;
    }

    body.mailshare-template-categories-page .content-wrapper .table-responsive td:last-child .btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 56px !important;
        height: 34px !important;
        min-height: 34px !important;
        margin: .1rem !important;
        padding: .3rem .5rem !important;
        font-size: .84rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        writing-mode: horizontal-tb !important;
    }
}
/* /MAILSHARE_MOBILE_TEMPLATE_CATEGORY_FIX_20260804 */

/* MAILSHARE_MOBILE_TEMPLATE_CATEGORY_HEADER_FIX_20260804 */
@media (max-width: 767.98px) {
    body.mailshare-template-categories-page .content-header {
        padding-bottom: .45rem;
    }

    body.mailshare-template-categories-page .content-header .row {
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.mailshare-template-categories-page .content-header .row > [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    body.mailshare-template-categories-page .content-header h1 {
        display: block;
        margin: 0 0 .55rem !important;
        font-size: 1.45rem !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
    }

    body.mailshare-template-categories-page .content-header .text-right, body.mailshare-template-categories-page .content-header .col-sm-6.text-right {
        text-align: left !important;
    }

    body.mailshare-template-categories-page .content-header a.btn, body.mailshare-template-categories-page .content-header button.btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 40px !important;
        height: 40px !important;
        margin: 0 !important;
        padding: .4rem .65rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
    }
}
/* /MAILSHARE_MOBILE_TEMPLATE_CATEGORY_HEADER_FIX_20260804 */

/* portal/kanri/mail-templates/index.php */
/* MAILSHARE_MOBILE_MAIL_TEMPLATE_INDEX_FIX_20260804 */
    @media (max-width: 767.98px) {
        /*
         * 検索カード上部の4ボタンを2列×2段に整列。
         */
        body.mailshare-template-index-page .content-wrapper .card:first-of-type > .card-header {
            display: block;
            padding: .7rem;
        }

        body.mailshare-template-index-page .content-wrapper .card:first-of-type > .card-header .card-title {
            float: none;
            display: block;
            margin: 0 0 .65rem;
        }

        body.mailshare-template-index-page .content-wrapper .card:first-of-type > .card-header .card-tools {
            float: none;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: .5rem;
            width: 100%;
            margin: 0;
        }

        body.mailshare-template-index-page .content-wrapper .card:first-of-type > .card-header .card-tools .btn {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: .3rem;
            width: 100% !important;
            min-width: 0 !important;
            height: 40px !important;
            min-height: 40px !important;
            margin: 0 !important;
            padding: .4rem .45rem !important;
            font-size: .86rem !important;
            line-height: 1 !important;
            text-align: center;
            white-space: nowrap !important;
            word-break: keep-all !important;
            overflow-wrap: normal !important;
        }

        body.mailshare-template-index-page .content-wrapper .card:first-of-type > .card-header .card-tools .btn i {
            margin-right: 0 !important;
            line-height: 1 !important;
        }

        /*
         * 一覧は横スクロール前提で必要幅を確保。
         * 操作列を広くし、編集・複製を横書きで並べる。
         */
        body.mailshare-template-index-page .content-wrapper form[action="/portal/phps/mail-templates/action.php"]
        .table-responsive {
            overflow-x: auto !important;
            -webkit-overflow-scrolling: touch;
        }

        body.mailshare-template-index-page .content-wrapper form[action="/portal/phps/mail-templates/action.php"]
        table {
            min-width: 860px !important;
            table-layout: fixed;
        }

        body.mailshare-template-index-page .content-wrapper form[action="/portal/phps/mail-templates/action.php"]
        th:nth-child(2), body.mailshare-template-index-page .content-wrapper form[action="/portal/phps/mail-templates/action.php"]
        td:nth-child(2) {
            width: 190px;
        }

        body.mailshare-template-index-page .content-wrapper form[action="/portal/phps/mail-templates/action.php"]
        th:last-child, body.mailshare-template-index-page .content-wrapper form[action="/portal/phps/mail-templates/action.php"]
        td:last-child {
            width: 150px !important;
            min-width: 150px !important;
            white-space: nowrap !important;
        }

        body.mailshare-template-index-page .content-wrapper form[action="/portal/phps/mail-templates/action.php"]
        td:last-child {
            padding: .45rem !important;
        }

        body.mailshare-template-index-page .content-wrapper form[action="/portal/phps/mail-templates/action.php"]
        td:last-child .btn {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: auto !important;
            min-width: 58px !important;
            height: 34px !important;
            min-height: 34px !important;
            margin: .1rem !important;
            padding: .3rem .5rem !important;
            font-size: .84rem !important;
            line-height: 1 !important;
            white-space: nowrap !important;
            word-break: keep-all !important;
            overflow-wrap: normal !important;
            writing-mode: horizontal-tb !important;
        }

        body.mailshare-template-index-page .content-wrapper form[action="/portal/phps/mail-templates/action.php"]
        td:last-child .btn + .btn {
            margin-left: .25rem !important;
        }

        body.mailshare-template-index-page .content-wrapper form[action="/portal/phps/mail-templates/action.php"]
        .card-footer {
            padding: .65rem;
        }

        body.mailshare-template-index-page .content-wrapper form[action="/portal/phps/mail-templates/action.php"]
        .card-footer > .btn {
            min-height: 38px !important;
            height: 38px !important;
            padding: .35rem .65rem !important;
            white-space: nowrap !important;
        }
    }
    /* /MAILSHARE_MOBILE_MAIL_TEMPLATE_INDEX_FIX_20260804 */

body.mailshare-template-index-page .mail-template-check-column {
    width: 36px;
}
/* MAILSHARE_MAIL_ACCOUNT_OPERATION_OVERLAP_FIX_20260807
 * メールアカウント一覧：スマホの操作ラベルとボタンの重なりを解消。
 */
@media (max-width: 767.98px) {
    body.ms-mobile-ui.mailshare-mail-account-index-page
    table.ms-mobile-card-table
    td.account-action {
        padding: 2.45rem .62rem .68rem !important;
    }

    body.ms-mobile-ui.mailshare-mail-account-index-page
    table.ms-mobile-card-table
    td.account-action::before {
        top: .68rem;
        left: .62rem;
        width: auto;
    }

    body.ms-mobile-ui.mailshare-mail-account-index-page
    table.ms-mobile-card-table
    td.account-action > a,
    body.ms-mobile-ui.mailshare-mail-account-index-page
    table.ms-mobile-card-table
    td.account-action > form {
        display: inline-block !important;
        width: auto !important;
        margin: .12rem .12rem .12rem 0 !important;
        vertical-align: top;
    }

    body.ms-mobile-ui.mailshare-mail-account-index-page
    table.ms-mobile-card-table
    td.account-action .btn {
        width: auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
    }
}
/* MAILSHARE_MAIL_ACCOUNT_OPERATION_BUTTON_UNIFY_V2_20260807
 * メールアカウント一覧：スマホ操作ボタンを2列・同幅・同高・中央揃えに統一。
 */
@media (max-width: 767.98px) {
    body.ms-mobile-ui.mailshare-mail-account-index-page
    table.ms-mobile-card-table
    td.account-action {
        position: relative !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .5rem !important;
        align-items: stretch !important;
        padding: 2.55rem .62rem .72rem !important;
    }

    body.ms-mobile-ui.mailshare-mail-account-index-page
    table.ms-mobile-card-table
    td.account-action::before {
        position: absolute !important;
        top: .68rem !important;
        left: .62rem !important;
        width: auto !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }

    body.ms-mobile-ui.mailshare-mail-account-index-page
    table.ms-mobile-card-table
    td.account-action > a,
    body.ms-mobile-ui.mailshare-mail-account-index-page
    table.ms-mobile-card-table
    td.account-action > form {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        align-items: stretch !important;
    }

    body.ms-mobile-ui.mailshare-mail-account-index-page
    table.ms-mobile-card-table
    td.account-action > a.btn,
    body.ms-mobile-ui.mailshare-mail-account-index-page
    table.ms-mobile-card-table
    td.account-action > form > .btn {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: .45rem .5rem !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.2 !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    body.ms-mobile-ui.mailshare-mail-account-index-page
    table.ms-mobile-card-table
    td.account-action .btn i {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        align-self: center !important;
        line-height: 1 !important;
    }
}

/* MAILSHARE_BOOTSTRAP_CLEANUP_FINAL_17_SHARED_CSS_20260807
 * CSS整理の残り17ページ分。
 * 現在のmail-editor.css末尾へ一度だけ追加する。
 */

/* portal/kanri/help/index.php / block 1 */
body.mailshare-help-cleanup-page .mailshare-help-page {color:#1f2937;line-height:1.75}
body.mailshare-help-cleanup-page .mailshare-help-page a {color:#3568e8;text-decoration:none}
body.mailshare-help-cleanup-page .mailshare-help-page a:hover {text-decoration:underline}
body.mailshare-help-cleanup-page .mailshare-help-page .hero {padding:28px;border-radius:14px;background:linear-gradient(135deg,#fff 0%,#edf3ff 100%);border:1px solid #dbe5fb;box-shadow:0 8px 24px rgba(25,42,70,.08)}
body.mailshare-help-cleanup-page .mailshare-help-page .hero h1 {margin:0 0 8px;font-size:30px}
body.mailshare-help-cleanup-page .mailshare-help-page .hero p {margin:0;color:#475467}
body.mailshare-help-cleanup-page .mailshare-help-page .search-wrap {display:flex;gap:8px;margin-top:20px}
body.mailshare-help-cleanup-page .mailshare-help-page #helpSearch {width:100%;padding:12px 14px;border:1px solid #b9c6da;border-radius:8px;font:inherit;background:#fff}
body.mailshare-help-cleanup-page .mailshare-help-page .section {margin-top:22px;background:#fff;border:1px solid #d9e0ea;border-radius:12px;box-shadow:0 8px 24px rgba(25,42,70,.08);overflow:hidden;scroll-margin-top:90px}
body.mailshare-help-cleanup-page .mailshare-help-page .section-head {padding:17px 20px;background:#f8fafc;border-bottom:1px solid #d9e0ea}
body.mailshare-help-cleanup-page .mailshare-help-page .section-head h2 {margin:0;font-size:22px}
body.mailshare-help-cleanup-page .mailshare-help-page .section-head p {margin:4px 0 0;color:#667085;font-size:14px}
body.mailshare-help-cleanup-page .mailshare-help-page .section-body {padding:20px}
body.mailshare-help-cleanup-page .mailshare-help-page .lead-box {padding:14px 16px;border-left:4px solid #3568e8;background:#eef4ff;border-radius:6px;margin-bottom:18px}
body.mailshare-help-cleanup-page .mailshare-help-page .warning {padding:14px 16px;border-left:4px solid #f59e0b;background:#fff8e8;border-radius:6px;margin:16px 0}
body.mailshare-help-cleanup-page .mailshare-help-page .danger {padding:14px 16px;border-left:4px solid #ef4444;background:#fff1f1;border-radius:6px;margin:16px 0}
body.mailshare-help-cleanup-page .mailshare-help-page .ok {padding:14px 16px;border-left:4px solid #22c55e;background:#effcf3;border-radius:6px;margin:16px 0}
body.mailshare-help-cleanup-page .mailshare-help-page .checklist {display:grid;gap:12px}
body.mailshare-help-cleanup-page .mailshare-help-page .check-item {display:grid;grid-template-columns:42px 1fr;gap:12px;padding:15px;border:1px solid #dce4ef;border-radius:10px;background:#fff}
body.mailshare-help-cleanup-page .mailshare-help-page .step {width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#3568e8;color:#fff;font-weight:700}
body.mailshare-help-cleanup-page .mailshare-help-page .check-item h3 {margin:0 0 4px;font-size:17px}
body.mailshare-help-cleanup-page .mailshare-help-page .check-item p {margin:0;color:#475467}
body.mailshare-help-cleanup-page .mailshare-help-page .check-item ul {margin:8px 0 0;padding-left:22px}
body.mailshare-help-cleanup-page .mailshare-help-page .screen-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
body.mailshare-help-cleanup-page .mailshare-help-page details {border:1px solid #dce3ec;border-radius:10px;background:#fff;overflow:hidden}
body.mailshare-help-cleanup-page .mailshare-help-page summary {list-style:none;cursor:pointer;padding:15px 16px;font-weight:700;background:#fbfcfe;display:flex;align-items:center;justify-content:space-between;gap:10px}
body.mailshare-help-cleanup-page .mailshare-help-page summary::-webkit-details-marker {display:none}
body.mailshare-help-cleanup-page .mailshare-help-page summary::after {content:"＋";font-size:20px;color:#3568e8}
body.mailshare-help-cleanup-page .mailshare-help-page details[open] summary::after {content:"−"}
body.mailshare-help-cleanup-page .mailshare-help-page details[open] summary {border-bottom:1px solid #e6eaf0}
body.mailshare-help-cleanup-page .mailshare-help-page .details-body {padding:15px 17px}
body.mailshare-help-cleanup-page .mailshare-help-page .details-body h4 {margin:14px 0 5px;font-size:15px}
body.mailshare-help-cleanup-page .mailshare-help-page .details-body h4:first-child {margin-top:0}
body.mailshare-help-cleanup-page .mailshare-help-page .details-body p {margin:0 0 10px;color:#475467}
body.mailshare-help-cleanup-page .mailshare-help-page .details-body ul, body.mailshare-help-cleanup-page .mailshare-help-page .details-body ol {margin:5px 0 12px;padding-left:22px}
body.mailshare-help-cleanup-page .mailshare-help-page .path {display:inline-block;padding:3px 8px;border-radius:5px;background:#eef2f7;color:#344054;font-size:13px;font-weight:600}
body.mailshare-help-cleanup-page .mailshare-help-page .role {display:inline-block;margin-left:5px;padding:2px 7px;border-radius:99px;background:#f2f4f7;color:#475467;font-size:12px}
body.mailshare-help-cleanup-page .mailshare-help-page table {width:100%;border-collapse:collapse}
body.mailshare-help-cleanup-page .mailshare-help-page th, body.mailshare-help-cleanup-page .mailshare-help-page td {border:1px solid #dce3ec;padding:10px;text-align:left;vertical-align:top}
body.mailshare-help-cleanup-page .mailshare-help-page th {background:#f8fafc}
body.mailshare-help-cleanup-page .mailshare-help-page .faq details {margin-bottom:10px}
body.mailshare-help-cleanup-page .mailshare-help-page .empty {display:none;margin-top:18px;padding:16px;border-radius:8px;background:#fff4e5;color:#8a4b08;border:1px solid #f5d39d}
body.mailshare-help-cleanup-page .mailshare-help-page .hidden-by-search {display:none!important}
body.mailshare-help-cleanup-page .mailshare-help-page .help-toc-card {position:sticky;top:76px}
@media(max-width:1000px){body.mailshare-help-cleanup-page .mailshare-help-page .screen-grid {grid-template-columns:1fr}body.mailshare-help-cleanup-page .mailshare-help-page .help-toc-card {position:static}}
/* MAILSHARE_HELP_MOBILE_FIX_20260804 */
@media(max-width:767.98px){body.mailshare-help-cleanup-page .mailshare-help-page .hero {padding:18px 14px}body.mailshare-help-cleanup-page .mailshare-help-page .hero h1 {font-size:24px}body.mailshare-help-cleanup-page .mailshare-help-page .search-wrap {display:grid;grid-template-columns:1fr 1fr;gap:8px}body.mailshare-help-cleanup-page .mailshare-help-page #helpSearch {grid-column:1/-1}body.mailshare-help-cleanup-page .mailshare-help-page .section-head, body.mailshare-help-cleanup-page .mailshare-help-page .section-body {padding:14px}body.mailshare-help-cleanup-page .mailshare-help-page .check-item {grid-template-columns:34px 1fr;padding:12px}body.mailshare-help-cleanup-page .mailshare-help-page summary {padding:13px 12px}}

/* portal/kanri/help/index.php / block 2 */
/* MAILSHARE_HELP_SEARCH_BUTTON_FINAL_FIX_20260804 */
@media (max-width: 767.98px) {
    body.mailshare-help-cleanup-page .mailshare-help-page .search-wrap {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .5rem !important;
        align-items: center;
    }

    body.mailshare-help-cleanup-page .mailshare-help-page .search-wrap input {
        grid-column: 1 / -1;
        width: 100% !important;
        min-width: 0 !important;
        height: 42px;
    }

    body.mailshare-help-cleanup-page .mailshare-help-page .search-wrap button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: .35rem .55rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        writing-mode: horizontal-tb !important;
    }
}
/* /MAILSHARE_HELP_SEARCH_BUTTON_FINAL_FIX_20260804 */

/* portal/kanri/mail-templates/edit.php / block 1 */
body.mailshare-template-edit-cleanup-page .template-edit-card .form-group.row {
            margin-bottom: .8rem;
        }

        body.mailshare-template-edit-cleanup-page .template-edit-card .col-form-label {
            font-weight: 600;
        }

        body.mailshare-template-edit-cleanup-page .template-body-text {
            min-height: 330px;
            resize: vertical;
        }

        body.mailshare-template-edit-cleanup-page .template-html-text {
            min-height: 180px;
            resize: vertical;
            font-family: Consolas, Monaco, monospace;
            font-size: .9rem;
        }

        body.mailshare-template-edit-cleanup-page .template-side-sticky {
            position: sticky;
            top: 70px;
        }

        body.mailshare-template-edit-cleanup-page .reserved-word-scroll {
            max-height: calc(100vh - 170px);
            overflow-y: auto;
        }

        body.mailshare-template-edit-cleanup-page .reserved-word-table {
            margin-bottom: 0;
        }

        body.mailshare-template-edit-cleanup-page .reserved-word-table th, body.mailshare-template-edit-cleanup-page .reserved-word-table td {
            padding: .34rem .45rem;
            vertical-align: middle;
        }

        body.mailshare-template-edit-cleanup-page .reserved-word-table .reserved-group-row th {
            background: #f4f6f9;
            border-top: 1px solid #dee2e6;
            color: #495057;
            font-size: .86rem;
            font-weight: 700;
        }

        body.mailshare-template-edit-cleanup-page .reserved-word-label {
            width: 66%;
            line-height: 1.35;
        }

        body.mailshare-template-edit-cleanup-page .reserved-word-token {
            white-space: nowrap;
            font-family: Consolas, Monaco, monospace;
            font-weight: 700;
            text-decoration: none !important;
        }

        body.mailshare-template-edit-cleanup-page .reserved-word-note {
            display: block;
            margin-top: .15rem;
            color: #868e96;
            font-size: .72rem;
            line-height: 1.25;
        }

        body.mailshare-template-edit-cleanup-page .reserved-collapse-button {
            border: 0;
            background: transparent;
            color: #007bff;
            font-weight: 600;
            padding: 0;
        }

        body.mailshare-template-edit-cleanup-page .reserved-copy-notice {
            position: fixed;
            z-index: 1100;
            right: 22px;
            bottom: 22px;
            display: none;
            min-width: 230px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
        }

        @media (max-width: 991.98px) {
            body.mailshare-template-edit-cleanup-page .template-side-sticky {
                position: static;
            }

            body.mailshare-template-edit-cleanup-page .reserved-word-scroll {
                max-height: none;
            }
        }

        @media (max-width: 767.98px) {
            body.mailshare-template-edit-cleanup-page .template-edit-card .col-form-label {
                padding-bottom: .25rem;
            }

            body.mailshare-template-edit-cleanup-page .template-body-text {
                min-height: 260px;
            }
        }

/* portal/kanri/mail-templates/edit.php / block 2 */
/* MAILSHARE_MOBILE_RESERVED_WORD_POSITION_FIX_20260804 */
@media (max-width: 991.98px) {
    body.mailshare-template-edit-cleanup-page .template-edit-card + .row, body.mailshare-template-edit-cleanup-page .content-wrapper section.content .container-fluid > .row {
        align-items: flex-start;
    }

    body.mailshare-template-edit-cleanup-page .content-wrapper section.content .container-fluid > .row > .col-xl-8, body.mailshare-template-edit-cleanup-page .content-wrapper section.content .container-fluid > .row > .col-lg-7 {
        order: 1 !important;
    }

    body.mailshare-template-edit-cleanup-page .content-wrapper section.content .container-fluid > .row > .col-xl-4, body.mailshare-template-edit-cleanup-page .content-wrapper section.content .container-fluid > .row > .col-lg-5 {
        order: 2 !important;
        margin-top: .8rem;
    }

    body.mailshare-template-edit-cleanup-page .template-side-sticky {
        position: static !important;
        top: auto !important;
    }

    body.mailshare-template-edit-cleanup-page .reserved-word-scroll {
        max-height: none !important;
        overflow-y: visible !important;
    }
}

@media (max-width: 767.98px) {
    body.mailshare-template-edit-cleanup-page .template-edit-card .card-body {
        padding: .75rem;
    }

    body.mailshare-template-edit-cleanup-page .template-edit-card .form-group.row {
        margin-bottom: .7rem;
    }

    body.mailshare-template-edit-cleanup-page .template-edit-card .col-form-label {
        padding-top: 0;
        padding-bottom: .25rem;
    }

    body.mailshare-template-edit-cleanup-page .template-side-sticky .card {
        margin-bottom: .75rem;
    }

    body.mailshare-template-edit-cleanup-page .reserved-word-table th, body.mailshare-template-edit-cleanup-page .reserved-word-table td {
        padding: .4rem .45rem;
    }
}
/* /MAILSHARE_MOBILE_RESERVED_WORD_POSITION_FIX_20260804 */

/* portal/kanri/mails/address-picker.php / block 1 */
body.mailshare-address-picker-cleanup-page {
            background: #f4f6f9;
        }

        body.mailshare-address-picker-cleanup-page .picker-header {
            position: sticky;
            top: 0;
            z-index: 20;
            padding: 12px 14px;
            border-bottom: 1px solid #d9dee3;
            background: #fff;
        }

        body.mailshare-address-picker-cleanup-page .picker-table-wrap {
            max-height: calc(100vh - 190px);
            overflow: auto;
            background: #fff;
        }

        body.mailshare-address-picker-cleanup-page .picker-table {
            margin-bottom: 0;
        }

        body.mailshare-address-picker-cleanup-page .picker-table thead th {
            position: sticky;
            top: 0;
            z-index: 10;
            white-space: nowrap;
            background: #f8f9fa;
        }

        body.mailshare-address-picker-cleanup-page .picker-table td, body.mailshare-address-picker-cleanup-page .picker-table th {
            vertical-align: middle;
        }

        body.mailshare-address-picker-cleanup-page .picker-email {
            word-break: break-all;
        }

        body.mailshare-address-picker-cleanup-page .picker-footer {
            position: sticky;
            bottom: 0;
            z-index: 20;
            padding: 10px 14px;
            border-top: 1px solid #d9dee3;
            background: #fff;
        }

        body.mailshare-address-picker-cleanup-page .picker-empty {
            padding: 30px 15px;
            color: #6c757d;
            text-align: center;
        }

        body.mailshare-address-picker-cleanup-page .picker-checkbox {
            width: 18px;
            height: 18px;
        }

/* portal/kanri/mails/compose.php / block 1 */
body.mailshare-compose-cleanup-page .compose-card label {
            font-weight: 600;
        }

        body.mailshare-compose-cleanup-page .compose-body {
            min-height: 360px;
            resize: vertical;
        }

        body.mailshare-compose-cleanup-page .recipient-input-group .input-group-append {
            margin-left: -1px;
        }

        body.mailshare-compose-cleanup-page .recipient-input-group .btn {
            min-width: 112px;
            white-space: nowrap;
        }

        body.mailshare-compose-cleanup-page .recipient-picker-note {
            margin-top: 4px;
        }

        @media (max-width: 575.98px) {
            body.mailshare-compose-cleanup-page .recipient-input-group {
                display: block;
            }

            body.mailshare-compose-cleanup-page .recipient-input-group .form-control {
                width: 100%;
                border-radius: 0.25rem;
            }

            body.mailshare-compose-cleanup-page .recipient-input-group .input-group-append {
                display: block;
                margin: 6px 0 0;
            }

            body.mailshare-compose-cleanup-page .recipient-input-group .btn {
                width: 100%;
                border-radius: 0.25rem;
            }
        }

        body.mailshare-compose-cleanup-page .draft-attachment {
            display: block;
            padding: 10px 12px;
            margin-bottom: 8px;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            background: #f8f9fa;
        }

        body.mailshare-compose-cleanup-page .draft-attachment:last-child {
            margin-bottom: 0;
        }

        /* MAILSHARE_COMPOSE_SCHEDULE_MOBILE_LAYOUT_FIX_20260806 */
        @media (max-width: 575.98px) {
            body.mailshare-compose-cleanup-page .mailshare-schedule-row {
                display: grid;
                grid-template-columns:
                    minmax(0, 1fr)
                    minmax(0, 1fr)
                    auto;
                column-gap: 0.5rem;
                row-gap: 0.5rem;
                margin-right: 0;
                margin-left: 0;
            }

            body.mailshare-compose-cleanup-page .mailshare-schedule-row
            > [class*="col-"] {
                width: auto;
                max-width: none;
                flex: none;
                margin-bottom: 0 !important;
                padding-right: 0;
                padding-left: 0;
            }

            body.mailshare-compose-cleanup-page .mailshare-schedule-date {
                grid-column: 1 / -1;
            }

            body.mailshare-compose-cleanup-page .mailshare-schedule-clear {
                min-width: 4.5rem;
            }

            body.mailshare-compose-cleanup-page .mailshare-schedule-clear
            #compose-scheduled-clear {
                width: 100% !important;
                min-width: 0 !important;
                padding-right: 0.55rem !important;
                padding-left: 0.55rem !important;
            }

            /* MAILSHARE_COMPOSE_SCHEDULE_MOBILE_HEIGHT_FIX_20260806 */
            body.mailshare-compose-cleanup-page .mailshare-schedule-hour, body.mailshare-compose-cleanup-page .mailshare-schedule-minute, body.mailshare-compose-cleanup-page .mailshare-schedule-clear {
                display: flex;
                align-items: stretch;
            }

            body.mailshare-compose-cleanup-page #compose-scheduled-hour, body.mailshare-compose-cleanup-page #compose-scheduled-minute, body.mailshare-compose-cleanup-page #compose-scheduled-clear {
                height: 42px !important;
                min-height: 42px !important;
                box-sizing: border-box;
                margin-top: 0 !important;
                margin-bottom: 0 !important;
            }

            body.mailshare-compose-cleanup-page #compose-scheduled-clear {
                display: flex;
                align-items: center;
                justify-content: center;
                line-height: 1.5 !important;
            }
            /* /MAILSHARE_COMPOSE_SCHEDULE_MOBILE_HEIGHT_FIX_20260806 */
        }
        /* /MAILSHARE_COMPOSE_SCHEDULE_MOBILE_LAYOUT_FIX_20260806 */

/* portal/kanri/mails/detail.php / block 1 */
body.mailshare-mail-detail-cleanup-page .mail-header-table th {
            width: 110px;
            color: #6c757d;
            white-space: nowrap;
            vertical-align: top;
        }

        body.mailshare-mail-detail-cleanup-page .mail-header-table td {
            word-break: break-word;
        }

        body.mailshare-mail-detail-cleanup-page .mail-subject {
            font-size: 22px;
            font-weight: bold;
            line-height: 1.5;
            word-break: break-word;
        }

        body.mailshare-mail-detail-cleanup-page .mail-view-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
        }

        body.mailshare-mail-detail-cleanup-page .mail-view-toolbar .btn-group {
            flex-shrink: 0;
        }

        body.mailshare-mail-detail-cleanup-page .mail-body {
            min-height: 250px;
            padding: 20px;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            background: #fff;
            overflow-wrap: anywhere;
            line-height: 1.8;
        }

        body.mailshare-mail-detail-cleanup-page .mail-body-text {
            white-space: pre-wrap;
        }

        body.mailshare-mail-detail-cleanup-page .mail-body-html {
            overflow-x: auto;
            word-break: normal;
        }

        body.mailshare-mail-detail-cleanup-page .mail-body-html table {
            max-width: 100% !important;
        }

        body.mailshare-mail-detail-cleanup-page .mail-body-html td, body.mailshare-mail-detail-cleanup-page .mail-body-html th {
            overflow-wrap: anywhere;
        }

        body.mailshare-mail-detail-cleanup-page .mail-body-html a {
            word-break: break-all;
        }

        body.mailshare-mail-detail-cleanup-page .mail-body-html img {
            display: block;
            max-width: 100%;
            height: auto;
            margin: 0.5rem 0;
        }

        body.mailshare-mail-detail-cleanup-page .mail-image-preview-title {
            margin: 1rem 0 0.5rem;
            font-weight: 600;
        }

        body.mailshare-mail-detail-cleanup-page .mail-image-preview-grid {
            display: grid;
            grid-template-columns: repeat(
                auto-fit,
                minmax(12rem, 1fr)
            );
            gap: 0.75rem;
            margin-top: 0.5rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-image-preview-item {
            min-width: 0;
            padding: 0.6rem;
            border: 1px solid #dee2e6;
            border-radius: 0.25rem;
            background: #f8f9fa;
        }

        body.mailshare-mail-detail-cleanup-page .mail-image-preview-item img {
            display: block;
            width: 100%;
            max-height: 22rem;
            object-fit: contain;
            background: #ffffff;
        }

        body.mailshare-mail-detail-cleanup-page .mail-image-preview-name {
            display: block;
            margin-top: 0.4rem;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        body.mailshare-mail-detail-cleanup-page .mail-body-pane[hidden] {
            display: none !important;
        }

        body.mailshare-mail-detail-cleanup-page .attachment-item {
            padding: 12px 15px;
            border-bottom: 1px solid #dee2e6;
        }

        body.mailshare-mail-detail-cleanup-page .attachment-item:last-child {
            border-bottom: 0;
        }

        body.mailshare-mail-detail-cleanup-page .thread-current {
            background: #edf5ff;
            font-weight: bold;
        }

        body.mailshare-mail-detail-cleanup-page .workflow-current {
            padding: 12px;
            border-radius: 4px;
            background: #f8f9fa;
        }

        body.mailshare-mail-detail-cleanup-page .comment-item {
            padding: 15px;
            border-bottom: 1px solid #dee2e6;
        }

        body.mailshare-mail-detail-cleanup-page .comment-item:last-child {
            border-bottom: 0;
        }

        body.mailshare-mail-detail-cleanup-page .comment-text {
            margin-top: 8px;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            line-height: 1.7;
        }

        /* MAIL_DETAIL_COMPACT_LAYOUT_20260726 */
        body.mailshare-mail-detail-cleanup-page .mail-detail-toolbar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-toolbar-left, body.mailshare-mail-detail-cleanup-page .mail-detail-toolbar-right {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }

        body.mailshare-mail-detail-cleanup-page .mail-top-action-card .card-body {
            padding: 0.75rem 0.85rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0;
            overflow: hidden;
            margin-bottom: 1rem;
            border: 1px solid #dee2e6;
            border-radius: 0.35rem;
            background: #ffffff;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-item {
            min-width: 0;
            padding: 0.7rem 0.8rem;
            border-right: 1px solid #e5e7eb;
            border-bottom: 1px solid #e5e7eb;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-item:nth-child(4n) {
            border-right: 0;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-item:nth-last-child(-n/**/+4) {
            border-bottom: 0;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-label {
            margin-bottom: 0.1rem;
            color: #6c757d;
            font-size: 11px;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-value {
            overflow-wrap: anywhere;
            font-size: 13px;
            font-weight: 600;
            line-height: 1.45;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-main {
            flex: 0 0 100%;
            max-width: 100%;
        }

        body.mailshare-mail-detail-cleanup-page .mail-panel-toggle {
            display: none;
        }

        body.mailshare-mail-detail-cleanup-page.mail-detail-enhanced .mail-panel-toggle {
            display: inline-flex;
            align-items: center;
        }

        body.mailshare-mail-detail-cleanup-page.mail-detail-enhanced .mail-detail-side {
            display: none;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-control-panel[hidden] {
            display: none !important;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-control-panel {
            margin-bottom: 1rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-control-panel > .card {
            margin-bottom: 0;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-control-panel > .card > .card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 43px;
            padding: 0.6rem 0.85rem;
            background: #f8f9fa;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-control-panel > .card > .card-body {
            padding: 0.85rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-control-grid, body.mailshare-mail-detail-cleanup-page .mail-detail-more-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.85rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-control-grid > .card, body.mailshare-mail-detail-cleanup-page .mail-detail-more-grid > .card {
            margin-bottom: 0;
            border: 1px solid #dee2e6;
            box-shadow: none;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-control-grid > .mail-information-card {
            grid-column: 1 / -1;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-control-grid .card-header, body.mailshare-mail-detail-cleanup-page .mail-detail-more-grid .card-header {
            padding: 0.6rem 0.8rem;
            background: #ffffff;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-control-grid .card-body, body.mailshare-mail-detail-cleanup-page .mail-detail-more-grid .card-body {
            padding: 0.8rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-control-grid .workflow-current {
            margin-bottom: 0.6rem !important;
            padding: 0.55rem 0.65rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-control-grid .form-group {
            margin-bottom: 0.6rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-control-grid .btn-block, body.mailshare-mail-detail-cleanup-page .mail-detail-more-grid .btn-block {
            margin-top: 0.35rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-main-card .card-header {
            padding: 0.85rem 1rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-main-card .card-body {
            padding: 0.9rem 1rem 1rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-main-card .mail-header-table {
            margin-bottom: 0.35rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-main-card .mail-header-table th, body.mailshare-mail-detail-cleanup-page .mail-main-card .mail-header-table td {
            padding-top: 0.3rem;
            padding-bottom: 0.3rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-body {
            min-height: 340px;
            padding: 1.15rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-panel-close {
            padding: 0.1rem 0.4rem;
            border: 0;
            background: transparent;
            color: #6c757d;
            font-size: 1.1rem;
            line-height: 1;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-panel-close:hover {
            color: #343a40;
        }

        @media (max-width: 1199.98px) {
            body.mailshare-mail-detail-cleanup-page .mail-overview-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            body.mailshare-mail-detail-cleanup-page .mail-overview-item, body.mailshare-mail-detail-cleanup-page .mail-overview-item:nth-child(4n) {
                border-right: 1px solid #e5e7eb;
                border-bottom: 1px solid #e5e7eb;
            }

            body.mailshare-mail-detail-cleanup-page .mail-overview-item:nth-child(2n) {
                border-right: 0;
            }

            body.mailshare-mail-detail-cleanup-page .mail-overview-item:nth-last-child(-n/**/+2) {
                border-bottom: 0;
            }
        }


        /* MAILSHARE_MOBILE_MAIL_DETAIL_BUTTON_FIX_20260804 */
        @media (max-width: 767.98px) {
            body.mailshare-mail-detail-cleanup-page .mail-top-action-card .card-body {
                padding: .75rem;
            }

            body.mailshare-mail-detail-cleanup-page .mail-detail-toolbar {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: .65rem;
                width: 100%;
            }

            body.mailshare-mail-detail-cleanup-page .mail-detail-toolbar-left, body.mailshare-mail-detail-cleanup-page .mail-detail-toolbar-right {
                display: contents;
            }

            body.mailshare-mail-detail-cleanup-page .mail-detail-toolbar .btn {
                display: inline-flex !important;
                width: 100% !important;
                min-width: 0 !important;
                min-height: 44px;
                margin: 0 !important;
                padding: .45rem .55rem !important;
                align-items: center !important;
                justify-content: center !important;
                gap: .4rem;
                line-height: 1.2 !important;
                text-align: center;
                white-space: nowrap !important;
                word-break: keep-all !important;
                overflow-wrap: normal !important;
            }

            body.mailshare-mail-detail-cleanup-page .mail-detail-toolbar .btn i {
                display: inline-flex;
                flex: 0 0 auto;
                width: 1.1em;
                height: 1.1em;
                margin: 0 !important;
                align-items: center;
                justify-content: center;
                line-height: 1 !important;
                vertical-align: middle;
            }

            body.mailshare-mail-detail-cleanup-page .mail-detail-toolbar .btn .fas, body.mailshare-mail-detail-cleanup-page .mail-detail-toolbar .btn .far {
                font-size: 1em;
            }
        }
        /* /MAILSHARE_MOBILE_MAIL_DETAIL_BUTTON_FIX_20260804 */
        @media (max-width: 767.98px) {
            body.mailshare-mail-detail-cleanup-page .mail-detail-toolbar {
                align-items: stretch;
            }

            body.mailshare-mail-detail-cleanup-page .mail-detail-toolbar-left, body.mailshare-mail-detail-cleanup-page .mail-detail-toolbar-right {
                width: 100%;
            }

            body.mailshare-mail-detail-cleanup-page .mail-detail-toolbar .btn {
                flex: 1 1 auto;
            }

            body.mailshare-mail-detail-cleanup-page .mail-overview-grid {
                grid-template-columns: 1fr;
            }

            body.mailshare-mail-detail-cleanup-page .mail-overview-item, body.mailshare-mail-detail-cleanup-page .mail-overview-item:nth-child(2n), body.mailshare-mail-detail-cleanup-page .mail-overview-item:nth-child(4n) {
                border-right: 0;
                border-bottom: 1px solid #e5e7eb;
            }

            body.mailshare-mail-detail-cleanup-page .mail-overview-item:last-child {
                border-bottom: 0;
            }

            body.mailshare-mail-detail-cleanup-page .mail-detail-control-grid, body.mailshare-mail-detail-cleanup-page .mail-detail-more-grid, body.mailshare-mail-detail-cleanup-page .mail-detail-secondary-grid {
                grid-template-columns: 1fr;
            }

            body.mailshare-mail-detail-cleanup-page .mail-detail-control-grid > .mail-information-card {
                grid-column: auto;
            }

            body.mailshare-mail-detail-cleanup-page .mail-subject {
                font-size: 18px;
            }
        }


        /* メール情報を上部で直接変更するコンパクト表示 */
        body.mailshare-mail-detail-cleanup-page .mail-overview-edit-grid .mail-overview-item {
            padding: 0.55rem 0.65rem 0.65rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-control {
            min-height: 32px;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-control form {
            margin: 0;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-control form > label, body.mailshare-mail-detail-cleanup-page .mail-overview-control form > .mb-2, body.mailshare-mail-detail-cleanup-page .mail-overview-control .workflow-current {
            display: none !important;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-control .form-group {
            margin: 0;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-inline-group {
            display: flex;
            align-items: stretch;
            width: 100%;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-inline-group .form-control {
            min-width: 0;
            height: 32px;
            padding: 0.2rem 0.45rem;
            border-radius: 0.2rem 0 0 0.2rem;
            font-size: 12px;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-inline-group .btn {
            flex: 0 0 auto;
            height: 32px;
            padding: 0.2rem 0.5rem;
            border-radius: 0 0.2rem 0.2rem 0;
            font-size: 12px;
            white-space: nowrap;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-scope-row {
            display: block;
            margin-top: 0.4rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-scope-label {
            display: block;
            margin-bottom: 0.2rem;
            color: #6c757d;
            font-size: 10px;
            white-space: nowrap;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-scope-row .form-control {
            width: 100%;
            min-width: 0;
            height: 29px;
            padding: 0.1rem 0.35rem;
            font-size: 11px;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-user-search {
            width: 100%;
            height: 29px;
            margin-top: 0.4rem;
            padding: 0.15rem 0.4rem;
            font-size: 11px;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-control .portal-user-picker-count {
            display: block;
            margin-top: 0.15rem;
            color: #6c757d;
            font-size: 10px;
            line-height: 1.2;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-secondary-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            align-items: start;
            margin-bottom: 1rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-secondary-grid > .card {
            min-width: 0;
            margin: 0;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-secondary-grid .card-header {
            padding: 0.65rem 0.8rem;
            background: #f8f9fa;
        }

        body.mailshare-mail-detail-cleanup-page .mail-detail-secondary-grid .card-body {
            padding: 0.8rem;
        }


        body.mailshare-mail-detail-cleanup-page .mail-overview-field-stack {
            display: grid;
            gap: 0.35rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-field-row-label {
            display: block;
            margin-bottom: 0.15rem;
            color: #6c757d;
            font-size: 10px;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-automation-summary {
            color: #495057;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.45;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-automation-details {
            margin-top: 0.35rem;
            font-size: 11px;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-automation-details summary {
            cursor: pointer;
            color: #007bff;
            font-weight: 600;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-automation-details .alert, body.mailshare-mail-detail-cleanup-page .mail-overview-automation-details > div {
            margin-top: 0.45rem;
            margin-bottom: 0;
        }

        body.mailshare-mail-detail-cleanup-page .mail-overview-empty {
            display: flex;
            align-items: center;
            min-height: 32px;
            color: #6c757d;
            font-size: 12px;
        }

        body.mailshare-mail-detail-cleanup-page .mail-information-card, body.mailshare-mail-detail-cleanup-page .mail-operation-card, body.mailshare-mail-detail-cleanup-page .mail-other-operation-card {
            margin-top: 1rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-operation-card .card-body {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        body.mailshare-mail-detail-cleanup-page .mail-operation-card .card-body > form, body.mailshare-mail-detail-cleanup-page .mail-operation-card .card-body > .alert {
            flex: 1 1 240px;
            margin: 0;
        }

        body.mailshare-mail-detail-cleanup-page .mail-operation-card .card-body .btn-block {
            margin-top: 0;
        }

        body.mailshare-mail-detail-cleanup-page .mail-other-operation-card {
            margin-bottom: 1rem;
        }

        @media (max-width: 575.98px) {
            body.mailshare-mail-detail-cleanup-page .mail-overview-grid {
                grid-template-columns: 1fr;
            }

            body.mailshare-mail-detail-cleanup-page .mail-overview-item, body.mailshare-mail-detail-cleanup-page .mail-overview-item:nth-child(2n), body.mailshare-mail-detail-cleanup-page .mail-overview-item:nth-child(3n) {
                border-right: 0;
                border-bottom: 1px solid #e5e7eb;
            }

            body.mailshare-mail-detail-cleanup-page .mail-overview-item:last-child {
                border-bottom: 0;
            }
        }

/* portal/kanri/mails/forward.php / block 1 */
body.mailshare-forward-cleanup-page .forward-card label {
            font-weight: 600;
        }

        body.mailshare-forward-cleanup-page .forward-body {
            min-height: 420px;
            resize: vertical;
        }

        body.mailshare-forward-cleanup-page .original-mail-summary dt {
            color: #6c757d;
            font-size: 13px;
        }

        body.mailshare-forward-cleanup-page .original-mail-summary dd {
            margin-bottom: 12px;
            word-break: break-word;
        }

        body.mailshare-forward-cleanup-page .original-attachment {
            display: block;
            padding: 10px 12px;
            margin-bottom: 8px;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            background: #f8f9fa;
        }

        body.mailshare-forward-cleanup-page .original-attachment:last-child {
            margin-bottom: 0;
        }

        /* MAILSHARE_FORWARD_COMPOSE_UI_FIX_20260804 */
        body.mailshare-forward-cleanup-page .mailshare-recipient-input-group {
            display: flex;
            gap: .5rem;
            align-items: stretch;
        }
        body.mailshare-forward-cleanup-page .mailshare-recipient-input-group .form-control {
            min-width: 0;
            flex: 1 1 auto;
        }
        body.mailshare-forward-cleanup-page .mailshare-recipient-input-group .btn {
            flex: 0 0 auto;
            white-space: nowrap;
        }
        body.mailshare-forward-cleanup-page .mailshare-recipient-help {
            margin-top: .35rem;
            color: #6c757d;
            font-size: .875rem;
        }
        body.mailshare-forward-cleanup-page .mailshare-compose-footer {
            display: flex;
            flex-wrap: wrap;
            gap: .5rem;
            align-items: center;
        }
        body.mailshare-forward-cleanup-page .mailshare-compose-footer .btn {
            margin: 0 !important;
            white-space: nowrap;
        }
        @media (max-width: 767.98px) {
            body.mailshare-forward-cleanup-page .mailshare-recipient-input-group {
                gap: .4rem;
            }
            body.mailshare-forward-cleanup-page .mailshare-recipient-input-group .btn {
                min-width: 88px;
            }
            body.mailshare-forward-cleanup-page .mailshare-compose-footer {
                gap: .5rem;
                padding: .75rem;
            }
            body.mailshare-forward-cleanup-page .mailshare-compose-footer .btn {
                min-height: 44px;
                padding: .5rem .7rem;
            }
        }
        /* /MAILSHARE_FORWARD_COMPOSE_UI_FIX_20260804 */

    
        /* MAILSHARE_COMPACT_COMPOSE_FOOTER_20260804 */
        @media (max-width: 767.98px) {
            body.mailshare-forward-cleanup-page .mailshare-compose-footer {
                display: grid !important;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: .35rem !important;
                padding: .45rem !important;
            }

            body.mailshare-forward-cleanup-page .mailshare-compose-footer .btn {
                width: 100% !important;
                min-width: 0 !important;
                min-height: 36px !important;
                height: 36px !important;
                padding: .3rem .4rem !important;
                font-size: .9rem !important;
                line-height: 1.1 !important;
                white-space: nowrap !important;
            }

            body.mailshare-forward-cleanup-page .mailshare-compose-footer .btn i {
                margin-right: .3rem !important;
                line-height: 1 !important;
            }
        }
        /* /MAILSHARE_COMPACT_COMPOSE_FOOTER_20260804 */

        /* MAILSHARE_SCHEDULE_CLEAR_BUTTON_FIX_20260804 */
        @media (max-width: 767.98px) {
            body.mailshare-forward-cleanup-page .mailshare-schedule-clear {
                min-width: 0 !important;
                width: 100% !important;
                height: 38px !important;
                min-height: 38px !important;
                padding: .35rem .25rem !important;
                font-size: .875rem !important;
                line-height: 1 !important;
                white-space: nowrap !important;
                word-break: keep-all !important;
                overflow-wrap: normal !important;
            }
        }
        /* /MAILSHARE_SCHEDULE_CLEAR_BUTTON_FIX_20260804 */

        /* MAILSHARE_FORWARD_SCHEDULE_MOBILE_MATCH_COMPOSE_20260806 */
        @media (max-width: 575.98px) {
            body.mailshare-forward-cleanup-page .mailshare-schedule-row {
                display: grid;
                grid-template-columns:
                    minmax(0, 1fr)
                    minmax(0, 1fr)
                    auto;
                column-gap: 0.5rem;
                row-gap: 0.5rem;
                margin-right: 0;
                margin-left: 0;
                align-items: stretch !important;
            }

            body.mailshare-forward-cleanup-page .mailshare-schedule-row
            > [class*="col-"] {
                width: auto;
                max-width: none;
                flex: none;
                margin-bottom: 0 !important;
                padding-right: 0;
                padding-left: 0;
            }

            body.mailshare-forward-cleanup-page .mailshare-schedule-date {
                grid-column: 1 / -1;
            }

            body.mailshare-forward-cleanup-page .mailshare-schedule-clear-cell {
                min-width: 4.5rem;
            }

            body.mailshare-forward-cleanup-page #forward-scheduled-hour, body.mailshare-forward-cleanup-page #forward-scheduled-minute, body.mailshare-forward-cleanup-page #forward-scheduled-clear {
                height: 42px !important;
                min-height: 42px !important;
                box-sizing: border-box;
                margin-top: 0 !important;
                margin-bottom: 0 !important;
            }

            body.mailshare-forward-cleanup-page #forward-scheduled-clear {
                width: 100% !important;
                min-width: 0 !important;
                padding-right: 0.55rem !important;
                padding-left: 0.55rem !important;
                display: flex;
                align-items: center;
                justify-content: center;
                line-height: 1.5 !important;
            }
        }
        /* /MAILSHARE_FORWARD_SCHEDULE_MOBILE_MATCH_COMPOSE_20260806 */

/* portal/kanri/mails/index.php / block 1 */
body.mailshare-mail-index-cleanup-page .mail-table thead th {
            background: #343a40;
            color: #fff;
            white-space: nowrap;
            vertical-align: middle;
        }

        body.mailshare-mail-index-cleanup-page .mail-table td {
            vertical-align: middle;
        }

        /* MAILSHARE_MAIL_LIST_UNREAD_FONT_UNIFY_20260806 */
        body.mailshare-mail-index-cleanup-page .mail-row-unread {
            background: #edf5ff;
        }

        /*
         * 既読行は、件名を含めて文字の太さを通常に統一する。
         * 未読の受信メールだけ、一覧の主要文字をすべて太字にする。
         * Font Awesomeアイコンのfont-weightは変更しない。
         */
        body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > td {
            font-weight: 400 !important;
        }

        body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > td a, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > td small, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > td .text-muted, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > td .mail-account-name, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > td .mail-account-email, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > td .mail-subject-main > a {
            font-weight: inherit !important;
        }

        body.mailshare-mail-index-cleanup-page .mail-table tbody tr.mail-row-unread:not(.mail-date-separator) > td {
            font-weight: 700 !important;
        }

        body.mailshare-mail-index-cleanup-page .mail-subject {
            min-width: 300px;
            max-width: 580px;
        }

        body.mailshare-mail-index-cleanup-page .mail-subject a {
            color: #212529;
            word-break: break-word;
        }

        body.mailshare-mail-index-cleanup-page .mail-from {
            min-width: 210px;
            max-width: 330px;
            word-break: break-word;
        }

        body.mailshare-mail-index-cleanup-page .mail-status {
            min-width: 100px;
        }

        body.mailshare-mail-index-cleanup-page .mail-assignee, body.mailshare-mail-index-cleanup-page .mail-reviewer {
            min-width: 120px;
        }

        body.mailshare-mail-index-cleanup-page .mail-fields-summary {
            min-width: 180px;
            max-width: 300px;
            white-space: normal;
            word-break: break-word;
            font-size: .75rem;
        }

        body.mailshare-mail-index-cleanup-page .bulk-card .form-group {
            margin-bottom: 10px;
        }

        body.mailshare-mail-index-cleanup-page .search-card .form-group {
            margin-bottom: 0;
        }

        /* 検索操作ボタンはPCで1行に並べる */
        body.mailshare-mail-index-cleanup-page .mail-search-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: .5rem;
            margin-top: .25rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-search-actions .btn {
            margin: 0 !important;
            white-space: nowrap;
        }

        body.mailshare-mail-index-cleanup-page .mail-date-separator td {
            padding: 7px 12px !important;
            background: #dfe7ef;
            color: #495057;
            font-weight: bold;
            border-top: 2px solid #aebbc7 !important;
        }

        body.mailshare-mail-index-cleanup-page .mail-table-compact td {
            padding-top: 5px;
            padding-bottom: 5px;
            font-size: 13px;
        }

        body.mailshare-mail-index-cleanup-page <?php if (
            (int)$mail_list_preferences["show_priority"] !== 1
        ): ?>.mail-col-priority {
            display: none;
        }

        body.mailshare-mail-index-cleanup-page <?php endif; ?><?php if (
                            (int)$mail_list_preferences["show_status"] !== 1
                        ): ?>.mail-col-status {
            display: none;
        }

        body.mailshare-mail-index-cleanup-page <?php endif; ?><?php if (
                            (int)$mail_list_preferences["show_assignee"] !== 1
                        ): ?>.mail-col-assignee {
            display: none;
        }

        body.mailshare-mail-index-cleanup-page <?php endif; ?><?php if (
                            (int)$mail_list_preferences["show_reviewer"] !== 1
                        ): ?>.mail-col-reviewer {
            display: none;
        }

        body.mailshare-mail-index-cleanup-page <?php endif; ?><?php if (
                            (int)$mail_list_preferences["show_account"] !== 1
                        ): ?>.mail-col-account {
            display: none;
        }

        body.mailshare-mail-index-cleanup-page <?php endif; ?><?php if (
                            (int)$mail_list_preferences["show_custom_fields"] !== 1
                        ): ?>.mail-col-custom-fields {
            display: none;
        }

        body.mailshare-mail-index-cleanup-page <?php endif; ?><?php if (
                            (int)$mail_list_preferences["show_attachment"] !== 1
                        ): ?>.mail-col-attachment {
            display: none;
        }

        body.mailshare-mail-index-cleanup-page <?php endif; ?><?php if (
                            (int)$mail_list_preferences["show_date"] !== 1
                        ): ?>.mail-col-date {
            display: none;
        }

        body.mailshare-mail-index-cleanup-page <?php endif; ?>.mail-workspace-row {
            align-items: flex-start;
        }

        /*
         * メールグループは移動用メニューに絞り、
         * 文字倍率100％で約13.5rem（約216px）にする。
         * rem指定なので管理画面の文字倍率設定にも追従する。
         */
        body.mailshare-mail-index-cleanup-page .mail-workspace-sidebar, body.mailshare-mail-index-cleanup-page .mail-workspace-main {
            position: relative;
            width: 100%;
            padding-right: 7.5px;
            padding-left: 7.5px;
        }

        body.mailshare-mail-index-cleanup-page .mail-workspace-sidebar {
            flex: 0 0 13.5rem;
            width: 13.5rem;
            max-width: 13.5rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-workspace-main {
            flex: 1 1 0;
            max-width: calc(100% - 13.5rem);
            min-width: 0;
        }

        body.mailshare-mail-index-cleanup-page .mail-processing-tray {
            position: sticky;
            top: 72px;
            overflow: hidden;
        }

        body.mailshare-mail-index-cleanup-page .mail-processing-tray .card-header {
            padding: .75rem .85rem;
            background: #e8f5f8;
            border-bottom-color: #c5dde3;
        }

        body.mailshare-mail-index-cleanup-page .mail-processing-tray .card-title {
            float: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            margin: 0;
            font-size: 1rem;
            font-weight: 700;
        }

        body.mailshare-mail-index-cleanup-page .mail-processing-tray .card-title a {
            color: #244b58;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-section {
            border-top: 1px solid #e5e9ed;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-section:first-child {
            border-top: 0;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-section-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: .65rem .75rem .35rem;
            color: #6c757d;
            font-size: .76rem;
            font-weight: 700;
            letter-spacing: .02em;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .5rem;
            min-height: 38px;
            padding: .45rem .75rem;
            color: #343a40;
            border-left: 3px solid transparent;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-link:hover {
            color: #0056b3;
            background: #f3f7fa;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-link.active {
            color: #004b68;
            background: #d8eef5;
            border-left-color: #17a2b8;
            font-weight: 700;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-link-child {
            padding-left: 1.35rem;
        }

        /* MAILSHARE_FOLDER_ACCOUNT_GROUP_UI_20260806 */
        body.mailshare-mail-index-cleanup-page .mail-tray-account-group {
            padding-bottom: .35rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-account-group + .mail-tray-account-group {
            border-top: 1px dashed #d9e0e5;
            padding-top: .35rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-account-heading {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .45rem;
            padding: .45rem .75rem .25rem;
            color: #315663;
            font-size: .78rem;
            font-weight: 700;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-account-heading a {
            min-width: 0;
            overflow: hidden;
            color: inherit;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-account-heading a:hover {
            color: #0056b3;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-account-address {
            display: block;
            overflow: hidden;
            color: #7b8790;
            font-size: .68rem;
            font-weight: 400;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-account-group .mail-tray-link-child {
            padding-left: 1.55rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-link-name {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* MAILSHARE_MAIL_TRAY_BADGE_COLOR_AND_SENT_COUNT_FIX_20260806 */
        body.mailshare-mail-index-cleanup-page .mail-tray-count {
            flex: 0 0 auto;
            min-width: 24px;
            font-size: .72rem;
            line-height: 1.4;
            text-align: center;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-status-dot {
            display: inline-block;
            width: 9px;
            height: 9px;
            margin-right: .4rem;
            border-radius: 50%;
            vertical-align: 1px;
        }

        body.mailshare-mail-index-cleanup-page .mail-processing-tray {
            max-height: calc(100vh - 88px);
            overflow-y: auto;
        }

        body.mailshare-mail-index-cleanup-page #mail-bulk-card {
            display: none;
            border-color: #9db8ff;
        }

        body.mailshare-mail-index-cleanup-page #mail-bulk-card.is-visible {
            display: block;
        }

        body.mailshare-mail-index-cleanup-page .mail-bulk-toolbar {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: .5rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-bulk-selected {
            flex: 0 0 auto;
            min-width: 105px;
            color: #3156a3;
            white-space: nowrap;
        }

        body.mailshare-mail-index-cleanup-page .mail-bulk-control {
            flex: 1 1 180px;
            max-width: 260px;
        }

        body.mailshare-mail-index-cleanup-page .mail-bulk-more {
            display: none;
        }

        body.mailshare-mail-index-cleanup-page .mail-bulk-more.is-open {
            display: block;
        }

        body.mailshare-mail-index-cleanup-page .mail-processing-tray .card-header {
            padding: .55rem .6rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-processing-tray .card-header form {
            margin-bottom: .55rem !important;
        }

        body.mailshare-mail-index-cleanup-page .mail-processing-tray .card-title {
            font-size: .9rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-section-title {
            padding: .5rem .55rem .25rem;
            font-size: .7rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-link {
            min-height: 33px;
            padding: .32rem .55rem;
            gap: .35rem;
            font-size: .8rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-link-child {
            padding-left: 1rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-account-heading {
            padding: .38rem .55rem .2rem;
            font-size: .72rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-account-address {
            font-size: .62rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-account-group .mail-tray-link-child {
            padding-left: 1.2rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-tray-count {
            min-width: 22px;
            padding: .05rem .32rem;
            font-size: .66rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-search-filter-grid .form-group {
            margin-bottom: .55rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-search-filter-grid label {
            margin-bottom: .2rem;
            font-size: .75rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-search-filter-grid .form-control {
            min-width: 0;
        }

        body.mailshare-mail-index-cleanup-page .mail-search-actions-main {
            margin-top: 0;
        }

        /* 一覧見出し内の絞り込み（メールワイズ型） */
        body.mailshare-mail-index-cleanup-page .mail-table-filter-select {
            width: 100%;
            min-width: 0;
            height: 26px;
            padding: 1px 18px 1px 5px;
            border: 1px solid rgba(255, 255, 255, .65);
            border-radius: 2px;
            background-color: #fff;
            color: #212529;
            font-size: .68rem;
            font-weight: 600;
            line-height: 1.1;
            text-overflow: ellipsis;
        }

        body.mailshare-mail-index-cleanup-page .mail-table-filter-select:focus {
            border-color: #80bdff;
            outline: 0;
            box-shadow: 0 0 0 .1rem rgba(0, 123, 255, .25);
        }

        body.mailshare-mail-index-cleanup-page .mail-table-filter-th {
            padding: .22rem .2rem !important;
        }

        /* =========================================================
           PC版メール一覧を画面幅内に収める
           日時列まで横スクロールなしで表示
        ========================================================= */
        @media (min-width: 1200px) {

            body.mailshare-mail-index-cleanup-page .mail-table {
                width: 100%;
                min-width: 0 !important;
                table-layout: fixed;
                font-size: .75rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td {
                padding: .38rem .3rem;
                line-height: 1.3;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th {
                font-size: .75rem;
            }

            /*
             * 既存の最低横幅を解除する
             * これを解除しないと文字を小さくしても
             * 日時列が画面外へはみ出す
             */
            body.mailshare-mail-index-cleanup-page .mail-subject, body.mailshare-mail-index-cleanup-page .mail-from, body.mailshare-mail-index-cleanup-page .mail-status, body.mailshare-mail-index-cleanup-page .mail-assignee, body.mailshare-mail-index-cleanup-page .mail-reviewer, body.mailshare-mail-index-cleanup-page .mail-fields-summary {
                min-width: 0;
                max-width: none;
            }

            /*
             * 長い文字列をセル内で折り返す
             */
            body.mailshare-mail-index-cleanup-page .mail-subject, body.mailshare-mail-index-cleanup-page .mail-from, body.mailshare-mail-index-cleanup-page .mail-col-account, body.mailshare-mail-index-cleanup-page .mail-fields-summary {
                overflow-wrap: anywhere;
                word-break: break-word;
            }

            /*
             * 件名は最大2行
             * 行が増えすぎて一覧が縦長になるのを防ぐ
             */
            body.mailshare-mail-index-cleanup-page .mail-subject a {
                display: -webkit-box;
                overflow: hidden;
                color: #212529;
                line-height: 1.35;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
            }

            body.mailshare-mail-index-cleanup-page .mail-from {
                line-height: 1.3;
            }

            body.mailshare-mail-index-cleanup-page .mail-col-account small {
                font-size: .625rem;
                line-height: 1.2;
            }

            /*
             * 日付と時刻を2行に折り返せるようにする
             */
            body.mailshare-mail-index-cleanup-page .mail-col-date {
                white-space: normal !important;
                line-height: 1.25;
            }

            /*
             * 未読・受信などのバッジも少し小さくする
             */
            body.mailshare-mail-index-cleanup-page .mail-table .badge {
                padding: .25em .38em;
                font-size: .625rem;
            }

            /*
             * 各列の横幅
             * 合計100%
             */
            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(1) {
                width: 3%;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(2) {
                width: 7%;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(3) {
                width: 6%;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(4) {
                width: 5%;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(5) {
                width: 7%;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(6) {
                width: 7%;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(7) {
                width: 7%;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(8) {
                width: 20%;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(9) {
                width: 13%;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(10) {
                width: 8%;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(11) {
                width: 6%;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(12) {
                width: 3%;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(13) {
                width: 8%;
            }
        }

        @media (max-width: 991.98px) {
            body.mailshare-mail-index-cleanup-page .mail-workspace-sidebar, body.mailshare-mail-index-cleanup-page .mail-workspace-main {
                flex: 0 0 100%;
                width: 100%;
                max-width: 100%;
            }

            body.mailshare-mail-index-cleanup-page .mail-processing-tray {
                position: static;
                top: auto;
                max-height: none;
                overflow-y: visible;
            }
        }

        /* =========================================================
           スマートフォン専用レイアウト
           PC（768px以上）には影響しない
        ========================================================= */
        @media (max-width: 767.98px) {

            /* 検索項目同士が詰まらないようにする */
            body.mailshare-mail-index-cleanup-page .search-card .form-group {
                margin-bottom: .85rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-bulk-toolbar {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: .5rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-bulk-selected {
                grid-column: 1 / -1;
                min-width: 0;
            }

            body.mailshare-mail-index-cleanup-page .mail-bulk-control {
                max-width: none;
            }

            body.mailshare-mail-index-cleanup-page .mail-bulk-toolbar .btn {
                width: 100%;
                margin: 0 !important;
            }

            /* 簡単な絞り込みを2列の押しやすいボタンにする */
            body.mailshare-mail-index-cleanup-page .mail-quick-filters {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: .5rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-quick-filter-label {
                grid-column: 1 / -1;
                display: block;
                margin: 0 !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-quick-filter-button {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                min-width: 0;
                min-height: 46px;
                margin: 0 !important;
                padding: .5rem .35rem;
                line-height: 1.25;
                white-space: normal;
                word-break: keep-all;
                text-align: center;
            }

            /* 検索・クリア等を2列にして縦書き状態を防ぐ */
            body.mailshare-mail-index-cleanup-page .mail-search-actions {
                display: grid !important;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: .5rem;
                width: 100%;
                margin-top: .15rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-search-actions .btn {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                min-width: 0;
                margin: 0 !important;
                padding-left: .35rem;
                padding-right: .35rem;
                white-space: normal;
                word-break: keep-all;
                text-align: center;
            }

            body.mailshare-mail-index-cleanup-page .mail-search-actions .btn:last-child {
                grid-column: 1 / -1;
            }

            /* 一括変更の各項目間に余白を付ける */
            body.mailshare-mail-index-cleanup-page .bulk-card .card-body>.row>[class*="col-"] {
                margin-bottom: 1rem;
            }

            body.mailshare-mail-index-cleanup-page .bulk-card .card-body>.row>[class*="col-"]:last-child {
                margin-bottom: 0;
            }

            /* 受信・送信メールの操作ボタンを2列で配置 */
            body.mailshare-mail-index-cleanup-page .mail-list-card .card-header {
                display: block;
            }

            body.mailshare-mail-index-cleanup-page .mail-list-card .card-title {
                float: none;
                display: block;
                margin-bottom: .7rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-list-tools {
                float: none !important;
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: .5rem;
                width: 100%;
                margin: 0;
            }

            body.mailshare-mail-index-cleanup-page .mail-list-tools .btn {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 100%;
                min-width: 0;
                margin: 0 !important;
                padding-left: .35rem;
                padding-right: .35rem;
                white-space: normal;
                word-break: keep-all;
                text-align: center;
            }

            body.mailshare-mail-index-cleanup-page .mail-total-count {
                grid-column: 1 / -1;
                display: block;
                padding-top: .15rem;
                text-align: right;
                font-weight: 600;
            }

            /* 横スクロール表をスマホだけメールカード型へ変更 */
            body.mailshare-mail-index-cleanup-page .mail-list-card .card-body.table-responsive {
                overflow: visible;
            }

            body.mailshare-mail-index-cleanup-page .mail-table, body.mailshare-mail-index-cleanup-page .mail-table tbody {
                display: block;
                width: 100%;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead {
                display: none;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr.mail-date-separator {
                display: block;
                margin: 0;
                border: 0;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr.mail-date-separator td {
                display: block;
                width: 100%;
                padding: .65rem .8rem !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) {
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                margin: .65rem;
                border: 1px solid #d7dde3;
                border-radius: 8px;
                background: #fff;
                box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
                overflow: hidden;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td {
                box-sizing: border-box;
                min-width: 0;
                border: 0 !important;
                padding: .4rem .65rem;
                white-space: normal !important;
            }

            /* 1:選択、2:状態、13:日時 */
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(1) {
                order: 1;
                flex: 0 0 46px;
                width: 46px;
                padding-right: .2rem;
                text-align: center;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(2) {
                order: 2;
                flex: 1 1 auto;
                width: auto;
                padding-left: .2rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(13) {
                order: 3;
                flex: 0 0 auto;
                width: auto;
                margin-left: auto;
                color: #6c757d;
                font-size: .78rem;
                text-align: right;
            }

            /* 8:件名、9:差出人 */
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(8) {
                order: 4;
                flex: 0 0 calc(100% - 46px);
                width: calc(100% - 46px);
                margin-left: 46px;
                padding-top: .2rem;
                padding-bottom: .25rem;
                font-size: 1rem;
                font-weight: 700;
                line-height: 1.4;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(8) a {
                display: block;
                overflow: hidden;
                color: #212529;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(9) {
                order: 5;
                flex: 0 0 calc(100% - 46px);
                width: calc(100% - 46px);
                margin-left: 46px;
                padding-top: 0;
                color: #6c757d;
                font-size: .86rem;
                line-height: 1.35;
            }

            /* 補足情報は小さな情報ブロックとして折り返す */
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(3), body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(4), body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(5), body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(6), body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(7), body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(10), body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(11), body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(12) {
                order: 6;
                flex: 1 1 50%;
                width: 50%;
                padding-top: .35rem;
                padding-bottom: .35rem;
                border-top: 1px solid #edf0f2 !important;
                font-size: .78rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(3)::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(4)::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(5)::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(6)::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(7)::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(10)::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(11)::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(12)::before {
                display: block;
                margin-bottom: .12rem;
                color: #6c757d;
                font-size: .68rem;
                font-weight: 600;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(3)::before {
                content: "フォルダ";
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(4)::before {
                content: "緊急度";
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(5)::before {
                content: "対応状況";
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(6)::before {
                content: "担当者";
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(7)::before {
                content: "確認者";
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(10)::before {
                content: "アカウント";
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(11)::before {
                content: "メール項目";
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(12)::before {
                content: "添付";
            }

            /* ダークモードでもスマホカードを読みやすくする */
            body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator) {
                border-color: #56606a;
                background: #343a40;
                box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
            }

            body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr.mail-row-unread {
                background: #3d4854 !important;
            }

            body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(8) a {
                color: #f8f9fa !important;
            }

            body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(9), body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(13), body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator)>td::before {
                color: #c2c7d0 !important;
            }

            body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(3), body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(4), body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(5), body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(6), body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(7), body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(10), body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(11), body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator)>td:nth-child(12) {
                border-top-color: #4b545c !important;
            }
        }


        /* 最終自動受信表示 */
        body.mailshare-mail-index-cleanup-page .mail-cron-status {
            display: inline-flex;
            align-items: center;
            gap: .3rem;
            min-height: 31px;
            padding: .25rem .55rem;
            border: 1px solid #ced4da;
            border-radius: .25rem;
            background: #f8f9fa;
            color: #495057;
            font-size: .78rem;
            line-height: 1.2;
            white-space: nowrap;
        }

        body.mailshare-mail-index-cleanup-page .mail-cron-status.is-success i { color: #28a745; }
        body.mailshare-mail-index-cleanup-page .mail-cron-status.is-warning i { color: #e0a800; }
        body.mailshare-mail-index-cleanup-page .mail-cron-status.is-failed i, body.mailshare-mail-index-cleanup-page .mail-cron-status.is-unknown i { color: #dc3545; }
        body.mailshare-mail-index-cleanup-page .mail-cron-status-count { color: #6c757d; font-size: .68rem; }

        /* PC版：表示倍率100％を基準に横スクロールを抑制 */
        @media (min-width: 992px) {
            body.mailshare-mail-index-cleanup-page .content-wrapper, body.mailshare-mail-index-cleanup-page .content-wrapper > .content, body.mailshare-mail-index-cleanup-page .content-wrapper .container-fluid, body.mailshare-mail-index-cleanup-page .mail-list-card, body.mailshare-mail-index-cleanup-page .mail-list-card .card-body.table-responsive {
                min-width: 0;
                max-width: 100%;
            }

            body.mailshare-mail-index-cleanup-page .content-wrapper { overflow-x: hidden; }

            body.mailshare-mail-index-cleanup-page .mail-workspace-row > [class*="col-"] { min-width: 0; }

            body.mailshare-mail-index-cleanup-page .mail-list-card .card-header {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: .4rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-list-card .card-title {
                float: none;
                flex: 0 0 auto;
                margin: 0;
            }

            body.mailshare-mail-index-cleanup-page .mail-list-tools {
                float: none !important;
                display: flex;
                flex: 1 1 auto;
                align-items: center;
                justify-content: flex-end;
                flex-wrap: wrap;
                gap: .32rem;
                margin-left: auto;
            }

            body.mailshare-mail-index-cleanup-page .mail-list-tools .btn {
                margin: 0 !important;
                padding: .25rem .42rem;
                font-size: .68rem;
                white-space: nowrap;
            }

            body.mailshare-mail-index-cleanup-page .mail-total-count {
                flex: 0 0 auto;
                font-size: .72rem;
                white-space: nowrap;
            }

            body.mailshare-mail-index-cleanup-page .mail-list-card .card-body.table-responsive {
                overflow-x: hidden !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table {
                width: 100% !important;
                min-width: 0 !important;
                table-layout: fixed;
                font-size: .68rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > td {
                box-sizing: border-box;
                min-width: 0 !important;
                max-width: none !important;
                padding: .32rem .2rem !important;
                overflow: hidden;
                line-height: 1.25;
                text-overflow: ellipsis;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th { font-size: .66rem; text-align: left; }

            body.mailshare-mail-index-cleanup-page .mail-table.mail-table-compact td {
                padding-top: .24rem !important;
                padding-bottom: .24rem !important;
                font-size: .64rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-subject, body.mailshare-mail-index-cleanup-page .mail-from, body.mailshare-mail-index-cleanup-page .mail-status, body.mailshare-mail-index-cleanup-page .mail-assignee, body.mailshare-mail-index-cleanup-page .mail-reviewer, body.mailshare-mail-index-cleanup-page .mail-fields-summary {
                min-width: 0 !important;
                max-width: none !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-subject a {
                display: -webkit-box;
                overflow: hidden;
                line-height: 1.28;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
            }

            body.mailshare-mail-index-cleanup-page .mail-from, body.mailshare-mail-index-cleanup-page .mail-col-account, body.mailshare-mail-index-cleanup-page .mail-fields-summary {
                overflow: hidden;
                overflow-wrap: anywhere;
                word-break: break-word;
            }

            /*
             * MAILSHARE_MAIL_PARTY_INNER_BORDER_FIX_20260806
             * td.mail-from 自体を -webkit-box にすると、1行データのセル高が
             * 内容分まで縮み、セルの下罫線が行の途中に表示される。
             * 省略表示はセル内の子要素で行うため、tdは通常のtable-cellを維持する。
             */
            body.mailshare-mail-index-cleanup-page .mail-fields-summary {
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
            }

            body.mailshare-mail-index-cleanup-page .mail-col-account small {
                display: block;
                overflow: hidden;
                font-size: .56rem;
                line-height: 1.15;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            body.mailshare-mail-index-cleanup-page .mail-col-date {
                font-size: .62rem;
                line-height: 1.2;
                white-space: normal !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table .badge {
                max-width: 100%;
                padding: .2em .3em;
                overflow: hidden;
                font-size: .56rem;
                line-height: 1.15;
                text-overflow: ellipsis;
                vertical-align: middle;
            }

            body.mailshare-mail-index-cleanup-page .mail-date-separator td {
                padding: .35rem .55rem !important;
                font-size: .7rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(1) { width: 3%; }
            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(2) { width: 7%; }
            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(3) { width: 6%; }
            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(4) { width: 5%; }
            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(5) { width: 7%; }
            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(6) { width: 7%; }
            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(7) { width: 7%; }
            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(8) { width: 22%; }
            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(9) { width: 13%; }
            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(10) { width: 8%; }
            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(11) { width: 6%; }
            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(12) { width: 3%; }
            body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(13) { width: 6%; }
        }

        @media (max-width: 767.98px) {
            body.mailshare-mail-index-cleanup-page .mail-cron-status {
                grid-column: 1 / -1;
                justify-self: start;
                width: auto;
            }
        }



        /* =========================================================
           メールワイズ寄りの一覧列
           状態・フォルダ・緊急度・添付は独立列にせず、件名欄へ集約する
        ========================================================= */
        body.mailshare-mail-index-cleanup-page .mail-subject-main {
            display: flex;
            align-items: flex-start;
            gap: .35rem;
            min-width: 0;
        }

        body.mailshare-mail-index-cleanup-page .mail-subject-main > a {
            min-width: 0;
            flex: 1 1 auto;
        }

        body.mailshare-mail-index-cleanup-page .mail-subject-icons {
            flex: 0 0 auto;
            white-space: nowrap;
            color: #6c757d;
        }

        body.mailshare-mail-index-cleanup-page .mail-subject-icons > * + * {
            margin-left: .22rem;
        }

        body.mailshare-mail-index-cleanup-page .mail-reviewer-inline {
            margin-top: .25rem;
            color: #6c757d;
            font-size: .68rem;
            line-height: 1.25;
        }

        body.mailshare-mail-index-cleanup-page .mail-reviewer-inline .badge {
            vertical-align: middle;
        }

        body.mailshare-mail-index-cleanup-page .mail-col-party {
            min-width: 180px;
            max-width: 330px;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        @media (min-width: 992px) {
            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-select {
                width: 3% !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-date {
                width: 9% !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-workflow {
                width: 12% !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-assignee {
                width: 9% !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-subject {
                width: 32% !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-party {
                width: 19% !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-account {
                width: 10% !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-custom-fields {
                width: 6% !important;
            }
        }

        @media (max-width: 991.98px) {
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > td::before {
                display: none !important;
                content: none !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-select {
                order: 1 !important;
                flex: 0 0 42px !important;
                width: 42px !important;
                margin: 0 !important;
                padding-right: .15rem !important;
                text-align: center !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-date {
                order: 2 !important;
                flex: 1 1 auto !important;
                width: auto !important;
                margin: 0 !important;
                color: #6c757d;
                font-size: .78rem;
                text-align: right;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-subject {
                order: 3 !important;
                flex: 0 0 calc(100% - 42px) !important;
                width: calc(100% - 42px) !important;
                margin-left: 42px !important;
                padding-top: .2rem !important;
                padding-bottom: .25rem !important;
                font-size: 1rem;
                font-weight: 700;
                line-height: 1.4;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-subject a {
                display: block;
                overflow: hidden;
                color: #212529;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-party {
                order: 4 !important;
                flex: 0 0 calc(100% - 42px) !important;
                width: calc(100% - 42px) !important;
                margin-left: 42px !important;
                padding-top: 0 !important;
                color: #6c757d;
                font-size: .86rem;
                line-height: 1.35;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-workflow, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-assignee, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-custom-fields {
                order: 5 !important;
                flex: 1 1 50% !important;
                width: 50% !important;
                margin: 0 !important;
                padding-top: .35rem !important;
                padding-bottom: .35rem !important;
                border-top: 1px solid #edf0f2 !important;
                font-size: .78rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-workflow::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-assignee::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-custom-fields::before {
                display: block !important;
                margin-bottom: .12rem;
                color: #6c757d;
                font-size: .68rem;
                font-weight: 600;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-workflow::before {
                content: "対応状況" !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-assignee::before {
                content: "担当者" !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account::before {
                content: "アカウント" !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-custom-fields::before {
                content: "メール項目" !important;
            }

            /* スマホではチェック欄を少し狭くし、件名・差出人を左へ寄せる */
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-select {
                flex-basis: 32px !important;
                width: 32px !important;
                padding-left: .25rem !important;
                padding-right: 0 !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-subject, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-party {
                flex-basis: calc(100% - 32px) !important;
                width: calc(100% - 32px) !important;
                margin-left: 32px !important;
                padding-left: .25rem !important;
                padding-right: .45rem !important;
            }

            /* 件名は長くても1行で省略 */
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-subject a {
                max-width: 100% !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                white-space: nowrap !important;
            }

            /* 宛先／差出人は最大2行。3行目以降は省略 */
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-party {
                display: -webkit-box !important;
                overflow: hidden !important;
                -webkit-box-orient: vertical !important;
                -webkit-line-clamp: 2 !important;
                line-clamp: 2 !important;
                overflow-wrap: anywhere !important;
            }

            /* スマホではアカウント名とメールアドレスを同じ行にする */
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account .mail-account-break {
                display: none !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account .mail-account-name, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account .mail-account-email {
                display: inline !important;
                margin: 0 !important;
                vertical-align: baseline !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account .mail-account-email {
                margin-left: .35rem !important;
                font-size: .68rem !important;
                white-space: nowrap !important;
            }

            body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator) > .mail-col-subject a {
                color: #f8f9fa !important;
            }

            body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator) > .mail-col-party, body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator) > .mail-col-date, body.mailshare-mail-index-cleanup-page.dark-mode .mail-table tbody tr:not(.mail-date-separator) > td::before {
                color: #c2c7d0 !important;
            }
        }


        /* =========================================================
           最終調整：メール一覧を7列で固定し、ヘッダーと明細のずれを防ぐ
           選択 / 日時 / アカウント / 宛先・差出人 / 件名 / 対応状況 / 担当者
        ========================================================= */
        @media (min-width: 992px) {
            body.mailshare-mail-index-cleanup-page .mail-list-card .card-body.table-responsive {
                overflow-x: auto !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table {
                width: 100% !important;
                min-width: 1050px !important;
                table-layout: fixed !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table thead th, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > td {
                box-sizing: border-box !important;
                min-width: 0 !important;
                max-width: none !important;
                overflow: hidden !important;
                text-overflow: ellipsis;
            }

            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-select { width: 34px !important; }
            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-date { width: 110px !important; }
            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-workflow { width: 145px !important; }
            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-assignee { width: 115px !important; }
            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-subject { width: auto !important; }
            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-party { width: 205px !important; }
            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-account { width: 165px !important; }

            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-subject, body.mailshare-mail-index-cleanup-page .mail-table .mail-col-party, body.mailshare-mail-index-cleanup-page .mail-table .mail-col-account {
                min-width: 0 !important;
                max-width: none !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-subject a, body.mailshare-mail-index-cleanup-page .mail-table .mail-col-party, body.mailshare-mail-index-cleanup-page .mail-table .mail-col-account {
                overflow-wrap: anywhere;
                word-break: break-word;
            }

            body.mailshare-mail-index-cleanup-page .mail-table .mail-col-party, body.mailshare-mail-index-cleanup-page .mail-table .mail-col-account {
                white-space: normal !important;
            }
        }

    

        /* =========================================================
           スマホ最終調整
           ・対応状況、担当者、アカウントをラベルと値の横並びにする
           ・未読行の選択欄を含め、カード全体の背景色を統一する
        ========================================================= */
        @media (max-width: 991.98px) {
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) {
                background-color: #ffffff !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr.mail-row-unread:not(.mail-date-separator) {
                background-color: #edf5ff !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > td, body.mailshare-mail-index-cleanup-page .mail-table tbody tr.mail-row-unread:not(.mail-date-separator) > td {
                background-color: transparent !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-workflow, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-assignee, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-custom-fields {
                display: flex !important;
                align-items: flex-start !important;
                gap: .45rem !important;
                line-height: 1.35 !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-workflow::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-assignee::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-custom-fields::before {
                display: inline-block !important;
                flex: 0 0 auto !important;
                min-width: 7.6em !important;
                margin: 0 !important;
                padding-top: .05rem !important;
                white-space: nowrap !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-workflow > *, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-assignee > *, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account > *, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-custom-fields > * {
                min-width: 0;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-workflow .mail-reviewer-inline {
                margin-top: .15rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-select {
                align-self: stretch !important;
                display: flex !important;
                align-items: flex-start !important;
                justify-content: center !important;
                padding-top: .65rem !important;
            }
        }

/* portal/kanri/mails/index.php / block 2 */
/* 2権限化パッチ適用後のメール一覧幅補正 */
@media (min-width: 992px) {
    body.mailshare-mail-index-cleanup-page .mail-list-card .card-body.table-responsive {
        overflow-x: auto !important;
    }

    body.mailshare-mail-index-cleanup-page .mail-table {
        width: 100% !important;
        min-width: 1120px !important;
        table-layout: fixed !important;
    }

    body.mailshare-mail-index-cleanup-page .mail-table thead th:nth-child(n) {
        width: auto;
    }

    body.mailshare-mail-index-cleanup-page .mail-table .mail-col-select { width: 38px !important; }
    body.mailshare-mail-index-cleanup-page .mail-table .mail-col-date { width: 120px !important; }
    body.mailshare-mail-index-cleanup-page .mail-table .mail-col-workflow { width: 155px !important; }
    body.mailshare-mail-index-cleanup-page .mail-table .mail-col-assignee { width: 125px !important; }
    body.mailshare-mail-index-cleanup-page .mail-table .mail-col-subject { width: auto !important; }
    body.mailshare-mail-index-cleanup-page .mail-table .mail-col-party { width: 205px !important; min-width: 205px !important; max-width: 205px !important; }
    body.mailshare-mail-index-cleanup-page .mail-table .mail-col-account { width: 165px !important; }
    body.mailshare-mail-index-cleanup-page .mail-table .mail-col-custom-fields { width: 135px !important; }

    body.mailshare-mail-index-cleanup-page .mail-table thead th, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > td {
        padding-left: .45rem !important;
        padding-right: .45rem !important;
    }

    body.mailshare-mail-index-cleanup-page .mail-table .mail-col-subject, body.mailshare-mail-index-cleanup-page .mail-table .mail-col-party, body.mailshare-mail-index-cleanup-page .mail-table .mail-col-account {
        white-space: normal !important;
    }
}


        /* =========================================================
           スマホ一覧：ラベル・値位置と未読背景の最終調整
        ========================================================= */
        @media (max-width: 991.98px) {
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) {
                overflow: hidden !important;
                background: #ffffff !important;
                background-color: #ffffff !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr.mail-row-unread:not(.mail-date-separator) {
                background: #edf5ff !important;
                background-color: #edf5ff !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > td, body.mailshare-mail-index-cleanup-page .mail-table tbody tr.mail-row-unread:not(.mail-date-separator) > td, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-select {
                background: inherit !important;
                background-color: inherit !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-workflow, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-assignee {
                display: grid !important;
                grid-template-columns: 5.2em minmax(0, 1fr) !important;
                align-items: center !important;
                column-gap: .35rem !important;
                flex: 0 0 50% !important;
                width: 50% !important;
                min-width: 0 !important;
                padding: .42rem .45rem !important;
                margin: 0 !important;
                box-sizing: border-box !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-custom-fields {
                display: grid !important;
                grid-template-columns: 5.2em minmax(0, 1fr) !important;
                align-items: start !important;
                column-gap: .35rem !important;
                flex: 0 0 100% !important;
                width: 100% !important;
                min-width: 0 !important;
                padding: .42rem .45rem !important;
                margin: 0 !important;
                box-sizing: border-box !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-workflow::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-assignee::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account::before, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-custom-fields::before {
                display: block !important;
                min-width: 0 !important;
                margin: 0 !important;
                padding: 0 !important;
                color: #59636e !important;
                font-size: .70rem !important;
                font-weight: 600 !important;
                line-height: 1.3 !important;
                white-space: nowrap !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-workflow::before {
                content: "対応状況" !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-assignee::before {
                content: "担当者" !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account::before {
                content: "アカウント" !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-assignee, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-assignee > * {
                white-space: nowrap !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-assignee > * {
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account > * {
                min-width: 0 !important;
                overflow-wrap: anywhere !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-workflow .mail-reviewer-inline {
                grid-column: 2 !important;
                margin: .12rem 0 0 !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-select {
                border-right: 0 !important;
            }
        }


        /* =========================================================
           スマホ一覧：件名左余白・差出人1行省略・アカウント横並び
        ========================================================= */
        @media (max-width: 991.98px) {
            /* 件名・宛先／差出人をカード左端近くまで寄せる */
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-subject, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-party {
                flex: 0 0 100% !important;
                width: 100% !important;
                min-width: 0 !important;
                margin-left: 0 !important;
                padding-left: .45rem !important;
                padding-right: .45rem !important;
                box-sizing: border-box !important;
            }

            /* アイコン＋件名を1行に収め、長い場合は末尾を…にする */
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-subject .mail-subject-main {
                display: flex !important;
                align-items: center !important;
                gap: .3rem !important;
                width: 100% !important;
                min-width: 0 !important;
                overflow: hidden !important;
                white-space: nowrap !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-subject .mail-subject-icons {
                flex: 0 0 auto !important;
                margin: 0 !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-subject a {
                display: block !important;
                flex: 1 1 auto !important;
                min-width: 0 !important;
                max-width: 100% !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                white-space: nowrap !important;
            }

            /* 宛先／差出人も必ず1行にし、長い場合は末尾を…にする */
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-party {
                display: block !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                white-space: nowrap !important;
                overflow-wrap: normal !important;
                word-break: normal !important;
            }

            /* アカウント名とメールアドレスを同じ値欄内で横並びにする */
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account .mail-account-value {
                min-width: 0 !important;
                display: flex !important;
                align-items: baseline !important;
                gap: .35rem !important;
                overflow: hidden !important;
                white-space: nowrap !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account .mail-account-break {
                display: none !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account .mail-account-name {
                flex: 0 0 auto !important;
                display: inline !important;
                margin: 0 !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account .mail-account-email {
                min-width: 0 !important;
                flex: 1 1 auto !important;
                display: inline !important;
                margin: 0 !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                white-space: nowrap !important;
                font-size: .68rem !important;
            }
        }

        /* MAILSHARE_MOBILE_MAIL_PANEL_COLLAPSE_20260804 */
        @media (max-width: 767.98px) {
            body.mailshare-mail-index-cleanup-page .mail-mobile-panel-toggle {
                display: flex;
                width: 100%;
                min-width: 0;
                min-height: 44px;
                align-items: center;
                justify-content: space-between;
                gap: .75rem;
                margin: 0;
                padding: .65rem .8rem;
                border: 1px solid #ced4da;
                border-radius: .25rem;
                background: #fff;
                color: #343a40;
                font-weight: 600;
                text-align: left;
                white-space: normal;
            }

            body.mailshare-mail-index-cleanup-page .mail-mobile-panel-toggle:hover, body.mailshare-mail-index-cleanup-page .mail-mobile-panel-toggle:focus {
                background: #f8f9fa;
                color: #212529;
            }

            body.mailshare-mail-index-cleanup-page .mail-mobile-panel-toggle .mail-mobile-panel-toggle-icon {
                flex: 0 0 auto;
                transition: transform .18s ease;
            }

            body.mailshare-mail-index-cleanup-page .mail-mobile-collapsible.is-open
            .mail-mobile-panel-toggle-icon {
                transform: rotate(180deg);
            }

            body.mailshare-mail-index-cleanup-page .mail-mobile-collapsible
            > .mail-mobile-collapsible-body {
                display: none;
            }

            body.mailshare-mail-index-cleanup-page .mail-mobile-collapsible.is-open
            > .mail-mobile-collapsible-body {
                display: block;
            }

            body.mailshare-mail-index-cleanup-page .mail-processing-tray.mail-mobile-collapsible
            > .card-header {
                padding-bottom: .75rem;
            }

            body.mailshare-mail-index-cleanup-page .mail-processing-tray
            .mail-mobile-panel-toggle {
                margin-top: .65rem;
            }

            body.mailshare-mail-index-cleanup-page .search-card.mail-mobile-collapsible
            > .mail-mobile-panel-toggle-wrap {
                padding: .75rem;
            }

            body.mailshare-mail-index-cleanup-page .search-card.mail-mobile-collapsible.is-open
            > .mail-mobile-panel-toggle-wrap {
                padding-bottom: 0;
            }
        }

        @media (min-width: 768px) {
            body.mailshare-mail-index-cleanup-page .mail-mobile-panel-toggle-wrap, body.mailshare-mail-index-cleanup-page .mail-mobile-panel-toggle {
                display: none !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-mobile-collapsible
            > .mail-mobile-collapsible-body {
                display: block !important;
            }
        }
        /* /MAILSHARE_MOBILE_MAIL_PANEL_COLLAPSE_20260804 */

        /* MAILSHARE_MAIL_LIST_MOBILE_COLUMN_ORDER_20260806 */
        @media (max-width: 991.98px) {
            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-account {
                order: 3 !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-party {
                order: 4 !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-subject {
                order: 5 !important;
            }

            body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-workflow, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-assignee, body.mailshare-mail-index-cleanup-page .mail-table tbody tr:not(.mail-date-separator) > .mail-col-custom-fields {
                order: 6 !important;
            }
        }

/* portal/kanri/mails/print.php */
@page mailshare-mail-print {
size: A4;
            margin: 12mm;
}
body.mailshare-mail-print-cleanup-page { page: mailshare-mail-print; }
body.mailshare-mail-print-cleanup-page, body.mailshare-mail-print-cleanup-page * {
            box-sizing: border-box;
        }

        body.mailshare-mail-print-cleanup-page, body.mailshare-mail-print-cleanup-page {
            margin: 0;
            padding: 0;
        }

        body.mailshare-mail-print-cleanup-page {
            color: #222;
            background: #fff;
            font-family:
                -apple-system,
                BlinkMacSystemFont,
                "Segoe UI",
                "Noto Sans JP",
                "Yu Gothic",
                Meiryo,
                sans-serif;
            font-size: 11pt;
            line-height: 1.65;
        }

        body.mailshare-mail-print-cleanup-page .print-page {
            width: 100%;
            max-width: 190mm;
            margin: 0 auto;
        }

        body.mailshare-mail-print-cleanup-page .toolbar {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid #ccc;
        }

        body.mailshare-mail-print-cleanup-page .toolbar button, body.mailshare-mail-print-cleanup-page .toolbar a {
            display: inline-block;
            padding: 7px 14px;
            border: 1px solid #888;
            border-radius: 4px;
            color: #222;
            background: #fff;
            font: inherit;
            text-decoration: none;
            cursor: pointer;
        }

        body.mailshare-mail-print-cleanup-page h1 {
            margin: 0 0 14px;
            font-size: 18pt;
            line-height: 1.35;
            overflow-wrap: anywhere;
        }

        body.mailshare-mail-print-cleanup-page .mail-meta {
            width: 100%;
            margin-bottom: 18px;
            border-collapse: collapse;
            table-layout: fixed;
        }

        body.mailshare-mail-print-cleanup-page .mail-meta th, body.mailshare-mail-print-cleanup-page .mail-meta td {
            padding: 6px 8px;
            border: 1px solid #999;
            vertical-align: top;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        body.mailshare-mail-print-cleanup-page .mail-meta th {
            width: 31mm;
            background: #f0f0f0;
            font-weight: 700;
            text-align: left;
        }

        body.mailshare-mail-print-cleanup-page .section {
            margin-top: 16px;
            page-break-inside: auto;
        }

        body.mailshare-mail-print-cleanup-page .section-title {
            margin: 0 0 7px;
            padding-bottom: 4px;
            border-bottom: 2px solid #555;
            font-size: 13pt;
        }

        body.mailshare-mail-print-cleanup-page .mail-body {
            min-height: 80px;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        body.mailshare-mail-print-cleanup-page .mail-body img {
            max-width: 100% !important;
            height: auto !important;
        }

        body.mailshare-mail-print-cleanup-page .mail-body table {
            max-width: 100% !important;
            table-layout: fixed;
            border-collapse: collapse;
        }

        body.mailshare-mail-print-cleanup-page .mail-body pre {
            white-space: pre-wrap;
            overflow-wrap: anywhere;
        }

        body.mailshare-mail-print-cleanup-page .plain-body {
            white-space: normal;
            overflow-wrap: anywhere;
        }

        body.mailshare-mail-print-cleanup-page .attachment-list {
            margin: 0;
            padding-left: 22px;
        }

        body.mailshare-mail-print-cleanup-page .attachment-list li {
            margin: 3px 0;
            overflow-wrap: anywhere;
        }

        body.mailshare-mail-print-cleanup-page .muted {
            color: #666;
            font-size: 9.5pt;
        }

        body.mailshare-mail-print-cleanup-page .print-footer {
            margin-top: 18px;
            padding-top: 8px;
            border-top: 1px solid #aaa;
            color: #666;
            font-size: 9pt;
            text-align: right;
        }

        @media print {
            body.mailshare-mail-print-cleanup-page .no-print {
                display: none !important;
            }

            body.mailshare-mail-print-cleanup-page {
                font-size: 10.5pt;
            }

            body.mailshare-mail-print-cleanup-page h1, body.mailshare-mail-print-cleanup-page .section-title, body.mailshare-mail-print-cleanup-page .mail-meta tr, body.mailshare-mail-print-cleanup-page .attachment-list li {
                break-inside: avoid;
                page-break-inside: avoid;
            }

            body.mailshare-mail-print-cleanup-page a {
                color: #000;
                text-decoration: none;
            }
        }

/* portal/kanri/mails/reply.php / block 1 */
body.mailshare-reply-cleanup-page .reply-card label {
            font-weight: 600;
        }

        body.mailshare-reply-cleanup-page .reply-body {
            min-height: 420px;
            resize: vertical;
        }

        body.mailshare-reply-cleanup-page .original-mail-summary dt {
            color: #6c757d;
            font-size: 13px;
        }

        body.mailshare-reply-cleanup-page .original-mail-summary dd {
            margin-bottom: 12px;
            word-break: break-word;
        }

        /* MAILSHARE_REPLY_COMPOSE_UI_FIX_20260804 */
        body.mailshare-reply-cleanup-page .mailshare-recipient-input-group {
            display: flex;
            gap: .5rem;
            align-items: stretch;
        }
        body.mailshare-reply-cleanup-page .mailshare-recipient-input-group .form-control {
            min-width: 0;
            flex: 1 1 auto;
        }
        body.mailshare-reply-cleanup-page .mailshare-recipient-input-group .btn {
            flex: 0 0 auto;
            white-space: nowrap;
        }
        body.mailshare-reply-cleanup-page .mailshare-recipient-help {
            margin-top: .35rem;
            color: #6c757d;
            font-size: .875rem;
        }
        body.mailshare-reply-cleanup-page .mailshare-compose-footer {
            display: flex;
            flex-wrap: wrap;
            gap: .5rem;
            align-items: center;
        }
        body.mailshare-reply-cleanup-page .mailshare-compose-footer .btn {
            margin: 0 !important;
            white-space: nowrap;
        }
        @media (max-width: 767.98px) {
            body.mailshare-reply-cleanup-page .mailshare-recipient-input-group {
                gap: .4rem;
            }
            body.mailshare-reply-cleanup-page .mailshare-recipient-input-group .btn {
                min-width: 88px;
            }
            body.mailshare-reply-cleanup-page .mailshare-compose-footer {
                gap: .5rem;
                padding: .75rem;
            }
            body.mailshare-reply-cleanup-page .mailshare-compose-footer .btn {
                min-height: 44px;
                padding: .5rem .7rem;
            }
        }
        /* /MAILSHARE_REPLY_COMPOSE_UI_FIX_20260804 */

    
        /* MAILSHARE_COMPACT_COMPOSE_FOOTER_20260804 */
        @media (max-width: 767.98px) {
            body.mailshare-reply-cleanup-page .mailshare-compose-footer {
                display: grid !important;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: .35rem !important;
                padding: .45rem !important;
            }

            body.mailshare-reply-cleanup-page .mailshare-compose-footer .btn {
                width: 100% !important;
                min-width: 0 !important;
                min-height: 36px !important;
                height: 36px !important;
                padding: .3rem .4rem !important;
                font-size: .9rem !important;
                line-height: 1.1 !important;
                white-space: nowrap !important;
            }

            body.mailshare-reply-cleanup-page .mailshare-compose-footer .btn i {
                margin-right: .3rem !important;
                line-height: 1 !important;
            }
        }
        /* /MAILSHARE_COMPACT_COMPOSE_FOOTER_20260804 */

        /* MAILSHARE_SCHEDULE_CLEAR_BUTTON_FIX_20260804 */
        @media (max-width: 767.98px) {
            body.mailshare-reply-cleanup-page .mailshare-schedule-clear {
                min-width: 0 !important;
                width: 100% !important;
                height: 38px !important;
                min-height: 38px !important;
                padding: .35rem .25rem !important;
                font-size: .875rem !important;
                line-height: 1 !important;
                white-space: nowrap !important;
                word-break: keep-all !important;
                overflow-wrap: normal !important;
            }
        }
        /* /MAILSHARE_SCHEDULE_CLEAR_BUTTON_FIX_20260804 */

        /* MAILSHARE_REPLY_SCHEDULE_MOBILE_MATCH_COMPOSE_20260806 */
        @media (max-width: 575.98px) {
            body.mailshare-reply-cleanup-page .mailshare-schedule-row {
                display: grid;
                grid-template-columns:
                    minmax(0, 1fr)
                    minmax(0, 1fr)
                    auto;
                column-gap: 0.5rem;
                row-gap: 0.5rem;
                margin-right: 0;
                margin-left: 0;
                align-items: stretch !important;
            }

            body.mailshare-reply-cleanup-page .mailshare-schedule-row
            > [class*="col-"] {
                width: auto;
                max-width: none;
                flex: none;
                margin-bottom: 0 !important;
                padding-right: 0;
                padding-left: 0;
            }

            body.mailshare-reply-cleanup-page .mailshare-schedule-date {
                grid-column: 1 / -1;
            }

            body.mailshare-reply-cleanup-page .mailshare-schedule-clear-cell {
                min-width: 4.5rem;
            }

            body.mailshare-reply-cleanup-page #reply-scheduled-hour, body.mailshare-reply-cleanup-page #reply-scheduled-minute, body.mailshare-reply-cleanup-page #reply-scheduled-clear {
                height: 42px !important;
                min-height: 42px !important;
                box-sizing: border-box;
                margin-top: 0 !important;
                margin-bottom: 0 !important;
            }

            body.mailshare-reply-cleanup-page #reply-scheduled-clear {
                width: 100% !important;
                min-width: 0 !important;
                padding-right: 0.55rem !important;
                padding-left: 0.55rem !important;
                display: flex;
                align-items: center;
                justify-content: center;
                line-height: 1.5 !important;
            }
        }
        /* /MAILSHARE_REPLY_SCHEDULE_MOBILE_MATCH_COMPOSE_20260806 */

/* portal/kanri/mails/search.php / block 1 */
body.mailshare-mail-search-cleanup-page .search-section-title {
            border-left: 4px solid #007bff;
            padding-left: 10px;
            font-weight: bold;
            margin-bottom: 18px;
        }

/* portal/kanri/mails/search.php / block 2 */
/* メールワイズ寄りの基本検索＋詳細条件。入力欄は既存DOMをそのまま移動する。 */
body.mailshare-mail-search-cleanup-page .mw-search-basic {
    border: 1px solid #d6dbe0;
    background: #fff;
    margin-bottom: 12px;
}
body.mailshare-mail-search-cleanup-page .mw-search-basic-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    min-height: 46px;
    border-bottom: 1px solid #d6dbe0;
}
body.mailshare-mail-search-cleanup-page .mw-search-basic-row:last-child { border-bottom: 0; }
body.mailshare-mail-search-cleanup-page .mw-search-basic-label {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #f4f1e8;
    font-weight: 600;
}
body.mailshare-mail-search-cleanup-page .mw-search-basic-fields {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 12px;
}
body.mailshare-mail-search-cleanup-page .mw-search-basic-fields .form-group {
    margin: 0;
    min-width: 180px;
    flex: 0 1 230px;
}
body.mailshare-mail-search-cleanup-page .mw-search-basic-fields .form-group.mw-search-wide {
    flex: 1 1 520px;
}
body.mailshare-mail-search-cleanup-page .mw-search-basic-fields label {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
}
body.mailshare-mail-search-cleanup-page .mw-search-basic-fields .form-control {
    height: 34px;
}
body.mailshare-mail-search-cleanup-page .mw-search-period-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-self: center;
}
body.mailshare-mail-search-cleanup-page .mw-search-advanced {
    border: 1px solid #d6dbe0;
    background: #fff;
    margin-top: 12px;
}
body.mailshare-mail-search-cleanup-page .mw-search-advanced > summary {
    cursor: pointer;
    padding: 11px 14px;
    font-weight: 600;
    color: #007bff;
    list-style: none;
}
body.mailshare-mail-search-cleanup-page .mw-search-advanced > summary::-webkit-details-marker { display: none; }
body.mailshare-mail-search-cleanup-page .mw-search-advanced > summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 7px;
    font-size: 11px;
    transition: transform .15s ease;
}
body.mailshare-mail-search-cleanup-page .mw-search-advanced[open] > summary::before { transform: rotate(90deg); }
body.mailshare-mail-search-cleanup-page .mw-search-advanced-body {
    padding: 14px 14px 0;
    border-top: 1px solid #d6dbe0;
}
body.mailshare-mail-search-cleanup-page .mw-search-advanced-body .search-section-title:first-child { margin-top: 0; }
body.mailshare-mail-search-cleanup-page .mw-search-hidden-empty { display: none !important; }
@media (max-width: 767.98px) {
    body.mailshare-mail-search-cleanup-page .mw-search-basic-row { grid-template-columns: 1fr; }
    body.mailshare-mail-search-cleanup-page .mw-search-basic-label { border-bottom: 1px solid #e5e7ea; }
    body.mailshare-mail-search-cleanup-page .mw-search-basic-fields .form-group { flex: 1 1 100%; min-width: 0; }
}

/* portal/kanri/mails/template-picker-ui.php：部分テンプレート。固有クラスで限定 */
@media (max-width:767.98px){
          .mailshare-template-picker .modal-dialog{margin:.5rem;max-width:none}
          .mailshare-template-picker .modal-content{border-radius:.35rem}
          .mailshare-template-picker .modal-header,
          .mailshare-template-picker .modal-body,
          .mailshare-template-picker .modal-footer{padding:.75rem}
          .mailshare-template-picker .input-group{display:grid;grid-template-columns:1fr;gap:.5rem}
          .mailshare-template-picker .input-group>.form-control{width:100%;border-radius:.25rem!important}
          .mailshare-template-picker .input-group-append{display:block;margin:0}
          .mailshare-template-picker .input-group-append .btn{width:100%;height:40px;border-radius:.25rem!important}
          .mailshare-template-picker .form-group{margin-bottom:.85rem}
          .mailshare-template-picker [data-template-list] .list-group-item{padding:.65rem}
        }

/* portal/kanri/maintenance/index.php / block 1 */
body.mailshare-maintenance-cleanup-page .maintenance-job-table th, body.mailshare-maintenance-cleanup-page .maintenance-job-table td {
            padding: 0.45rem 0.55rem;
            vertical-align: middle;
        }

        body.mailshare-maintenance-cleanup-page .maintenance-job-table th {
            white-space: nowrap;
        }

        body.mailshare-maintenance-cleanup-page .maintenance-job-name strong, body.mailshare-maintenance-cleanup-page .maintenance-job-name small {
            display: block;
            line-height: 1.25;
        }

        body.mailshare-maintenance-cleanup-page .maintenance-job-name small {
            margin-top: 2px;
        }

        body.mailshare-maintenance-cleanup-page .maintenance-job-progress {
            min-width: 130px;
        }

        body.mailshare-maintenance-cleanup-page .maintenance-error {
            width: 34%;
            min-width: 320px;
            max-width: none;
            white-space: normal;
            word-break: break-word;
        }

        body.mailshare-maintenance-cleanup-page .maintenance-error-text {
            margin-bottom: 3px;
            line-height: 1.35;
        }

        /* MAILSHARE_MAINTENANCE_LOG_BOOTSTRAP_STACK_FIX_20260806 */
        body.mailshare-maintenance-cleanup-page .maintenance-log {
            margin: 0;
            white-space: normal;
            word-break: break-word;
            font-size: 12px;
            line-height: 1.35;
        }

        body.mailshare-maintenance-cleanup-page .maintenance-log + .maintenance-log {
            margin-top: 3px;
        }

        body.mailshare-maintenance-cleanup-page .maintenance-log-time {
            white-space: nowrap;
        }

        body.mailshare-maintenance-cleanup-page .maintenance-log-message {
            min-width: 0;
        }

        body.mailshare-maintenance-cleanup-page .maintenance-more-logs {
            margin-top: 4px;
        }

        body.mailshare-maintenance-cleanup-page .maintenance-more-logs summary {
            display: inline-block;
            color: #6c757d;
            font-size: 12px;
            cursor: pointer;
            user-select: none;
        }

        body.mailshare-maintenance-cleanup-page .maintenance-more-logs[open] summary {
            margin-bottom: 4px;
        }

        @media (max-width: 1199.98px) {
            body.mailshare-maintenance-cleanup-page .maintenance-error {
                min-width: 280px;
            }
        }

/* portal/kanri/notifications/index.php / block 1 */
body.mailshare-notifications-cleanup-page .notification-list-card > .card-body {
            padding: 10px;
        }

        body.mailshare-notifications-cleanup-page .notification-item {
            border-left: 4px solid #adb5bd;
            box-shadow: none;
            margin-bottom: 6px;
        }

        body.mailshare-notifications-cleanup-page .notification-item:last-child {
            margin-bottom: 0;
        }

        body.mailshare-notifications-cleanup-page .notification-item.is-unread {
            border-left-color: #007bff;
            background: #f4f9ff;
        }

        body.mailshare-notifications-cleanup-page .notification-item .card-body {
            padding: 8px 12px;
        }

        body.mailshare-notifications-cleanup-page .notification-layout {
            display: grid;
            grid-template-columns: 30px minmax(0, 1fr) auto;
            gap: 10px;
            align-items: center;
        }

        body.mailshare-notifications-cleanup-page .notification-icon {
            text-align: center;
            line-height: 1;
        }

        body.mailshare-notifications-cleanup-page .notification-icon i {
            font-size: 1.35rem !important;
        }

        body.mailshare-notifications-cleanup-page .notification-main {
            min-width: 0;
        }

        body.mailshare-notifications-cleanup-page .notification-title-line {
            display: flex;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }

        body.mailshare-notifications-cleanup-page .notification-title {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 1rem;
            font-weight: 600;
            line-height: 1.35;
        }

        body.mailshare-notifications-cleanup-page .notification-detail-line {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
            margin-top: 3px;
            font-size: .85rem;
            line-height: 1.3;
        }

        body.mailshare-notifications-cleanup-page .notification-message {
            flex: 1 1 auto;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        body.mailshare-notifications-cleanup-page .notification-creator {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        body.mailshare-notifications-cleanup-page .notification-side {
            display: flex;
            align-items: center;
            gap: 10px;
            white-space: nowrap;
        }

        body.mailshare-notifications-cleanup-page .notification-side .btn {
            padding: 3px 10px;
        }

        body.mailshare-notifications-cleanup-page .notification-count-summary {
            display: inline-block;
            margin-left: 10px;
            color: #6c757d;
            font-size: .875rem;
            vertical-align: middle;
        }

        body.mailshare-notifications-cleanup-page .notification-pagination-wrap {
            padding: 12px 10px 4px;
        }

        body.mailshare-notifications-cleanup-page .notification-pagination-wrap .pagination {
            margin-bottom: 0;
        }

        body.mailshare-notifications-cleanup-page.dark-mode .notification-item.is-unread {
            background: #293a4a;
        }

        body.mailshare-notifications-cleanup-page.dark-mode .notification-count-summary {
            color: #c4ccd4;
        }

        @media (max-width: 767.98px) {
            body.mailshare-notifications-cleanup-page .notification-layout {
                grid-template-columns: 26px minmax(0, 1fr);
                gap: 8px;
            }

            body.mailshare-notifications-cleanup-page .notification-side {
                grid-column: 2;
                justify-content: space-between;
                margin-top: 4px;
            }

            body.mailshare-notifications-cleanup-page .notification-detail-line {
                display: block;
            }

            body.mailshare-notifications-cleanup-page .notification-message, body.mailshare-notifications-cleanup-page .notification-creator {
                display: block;
                margin-top: 2px;
            }
        }

/* portal/kanri/notifications/push-settings.php / block 1 */
body.mailshare-push-settings-cleanup-page .push-setting-wrap {max-width:820px}body.mailshare-push-settings-cleanup-page .push-status {font-weight:600}body.mailshare-push-settings-cleanup-page .push-help li {margin-bottom:.45rem}

/* portal/kanri/notifications/push-settings.php / block 2 */
/* MAILSHARE_MOBILE_PUSH_SETTING_BUTTON_FIX_20260804 */
@media (max-width: 767.98px) {
    body.mailshare-push-settings-cleanup-page .push-setting-wrap .card-body {
        padding: .75rem;
    }

    body.mailshare-push-settings-cleanup-page .push-setting-wrap #pushEnable, body.mailshare-push-settings-cleanup-page .push-setting-wrap #pushDisable, body.mailshare-push-settings-cleanup-page .push-setting-wrap #pushTest {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 40px !important;
        height: 40px !important;
        margin: 0 0 .5rem 0 !important;
        padding: .4rem .65rem !important;
        font-size: .9rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
    }

    body.mailshare-push-settings-cleanup-page .push-setting-wrap #pushTest {
        margin-bottom: 0 !important;
    }

    body.mailshare-push-settings-cleanup-page .push-setting-wrap #pushEnable i, body.mailshare-push-settings-cleanup-page .push-setting-wrap #pushDisable i, body.mailshare-push-settings-cleanup-page .push-setting-wrap #pushTest i {
        margin-right: .35rem !important;
        line-height: 1 !important;
    }

    body.mailshare-push-settings-cleanup-page .push-setting-wrap .push-help {
        padding-left: 1.2rem;
    }
}
/* /MAILSHARE_MOBILE_PUSH_SETTING_BUTTON_FIX_20260804 */

/* portal/kanri/reports/detail.php / block 1 */
body.mailshare-report-detail-cleanup-page .report-bar-row {display:grid;grid-template-columns:minmax(140px,240px) 1fr 90px;gap:10px;align-items:center;margin-bottom:9px}
body.mailshare-report-detail-cleanup-page .report-bar-track {height:24px;background:#e9ecef;border-radius:4px;overflow:hidden}
body.mailshare-report-detail-cleanup-page .report-bar {height:24px;background:#007bff;border-radius:4px;min-width:2px}
body.mailshare-report-detail-cleanup-page .report-label-link {color:#212529;text-decoration:none}body.mailshare-report-detail-cleanup-page .report-label-link:hover {color:#0056b3;text-decoration:underline}
body.mailshare-report-detail-cleanup-page .report-chart-scroll {overflow-x:auto;padding-bottom:8px}body.mailshare-report-detail-cleanup-page .report-line-svg {min-width:620px;width:100%;height:auto}
body.mailshare-report-detail-cleanup-page .report-pie-layout {display:flex;flex-wrap:wrap;gap:28px;align-items:center}body.mailshare-report-detail-cleanup-page .report-pie {width:250px;height:250px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
body.mailshare-report-detail-cleanup-page .report-pie-legend {min-width:280px;flex:1}body.mailshare-report-detail-cleanup-page .report-pie-item {display:grid;grid-template-columns:16px minmax(160px,1fr) 90px;gap:8px;align-items:center;margin-bottom:8px}body.mailshare-report-detail-cleanup-page .report-pie-color {width:14px;height:14px;border-radius:3px}
body.mailshare-report-detail-cleanup-page .report-total {font-size:1.1rem;font-weight:600}
@media(max-width:767px){body.mailshare-report-detail-cleanup-page .report-bar-row {grid-template-columns:1fr}body.mailshare-report-detail-cleanup-page .report-pie {width:210px;height:210px}}
@media print{body.mailshare-report-detail-cleanup-page .no-print {display:none!important}body.mailshare-report-detail-cleanup-page .content-wrapper {margin-left:0!important}body.mailshare-report-detail-cleanup-page .main-sidebar, body.mailshare-report-detail-cleanup-page .main-header {display:none!important}}

/* portal/kanri/reports/print.php / block 1 */
body.mailshare-report-print-cleanup-page, body.mailshare-report-print-cleanup-page * {box-sizing:border-box}
body.mailshare-report-print-cleanup-page {font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP",sans-serif;font-size:12px;color:#222;margin:24px}
body.mailshare-report-print-cleanup-page h1 {font-size:22px;margin:0 0 8px}body.mailshare-report-print-cleanup-page h2 {font-size:16px;margin:24px 0 10px}
body.mailshare-report-print-cleanup-page .report-meta {margin-bottom:18px;color:#555}
body.mailshare-report-print-cleanup-page table {width:100%;border-collapse:collapse;margin-top:12px;page-break-inside:auto}
body.mailshare-report-print-cleanup-page tr {page-break-inside:avoid;page-break-after:auto}
body.mailshare-report-print-cleanup-page th, body.mailshare-report-print-cleanup-page td {border:1px solid #999;padding:7px}body.mailshare-report-print-cleanup-page th {background:#eee;text-align:left}body.mailshare-report-print-cleanup-page .text-right {text-align:right}
body.mailshare-report-print-cleanup-page .no-print {margin-bottom:16px}body.mailshare-report-print-cleanup-page .no-print button {padding:7px 18px}
body.mailshare-report-print-cleanup-page .report-bar-row {display:grid;grid-template-columns:minmax(140px,230px) 1fr 80px;gap:10px;align-items:center;margin:8px 0;page-break-inside:avoid}
body.mailshare-report-print-cleanup-page .report-bar-track {height:22px;background:#e9ecef;border:1px solid #d6d8db;overflow:hidden}
body.mailshare-report-print-cleanup-page .report-bar {height:100%;background:#007bff;min-width:2px}
body.mailshare-report-print-cleanup-page .report-pie-layout {display:flex;gap:28px;align-items:center;flex-wrap:wrap;page-break-inside:avoid}
body.mailshare-report-print-cleanup-page .report-pie {width:220px;height:220px;border-radius:50%;border:1px solid #ccc}
body.mailshare-report-print-cleanup-page .report-pie-legend {min-width:300px;flex:1}body.mailshare-report-print-cleanup-page .report-pie-item {display:grid;grid-template-columns:14px minmax(160px,1fr) 90px;gap:8px;align-items:center;margin:7px 0}body.mailshare-report-print-cleanup-page .report-pie-color {width:12px;height:12px}
body.mailshare-report-print-cleanup-page .report-chart-scroll {overflow:visible}body.mailshare-report-print-cleanup-page .report-line-svg {width:100%;max-width:1000px;height:auto;page-break-inside:avoid}
body.mailshare-report-print-cleanup-page .report-empty {padding:16px;border:1px solid #ccc;color:#666}
@media print{
  body.mailshare-report-print-cleanup-page {margin:0}
  body.mailshare-report-print-cleanup-page .no-print {display:none!important}
  body.mailshare-report-print-cleanup-page, body.mailshare-report-print-cleanup-page * {-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
}

body.mailshare-address-picker-cleanup-page
.mailshare-address-picker-check-column {
    width: 44px;
}

.mailshare-editor-source-hidden {
    display: none;
}

.mailshare-runtime-hidden {
    display: none;
}

body.mailshare-mail-index-cleanup-page
.mail-list-announcement-body {
    white-space: pre-wrap;
    word-break: break-word;
}

body.mailshare-maintenance-cleanup-page
.maintenance-display-period-value {
    font-size: 1.35rem;
}

body.mailshare-maintenance-cleanup-page
.maintenance-backup-actions {
    min-width: 210px;
}

body.mailshare-report-detail-cleanup-page
.report-detail-column {
    width: 90px;
}

/* MAILSHARE_HTML_DOWNLOAD_CSS_START_20260807 */
.mailshare-html-download-body {
    margin: 24px;
    color: #212529;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans JP",
        sans-serif;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.mailshare-html-download-body table {
    max-width: 100%;
    border-collapse: collapse;
}

.mailshare-html-download-body td,
.mailshare-html-download-body th {
    padding: 6px;
    border: 1px solid #d9d9d9;
}

.mailshare-html-download-body pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.mailshare-html-download-body a {
    color: #0056b3;
}
/* MAILSHARE_HTML_DOWNLOAD_CSS_END_20260807 */

/* MAILSHARE_FOLLOWUP_4_PAGE_LAYOUT_FIX_20260807
 * 使い方・テンプレート編集・メール詳細・保守画面の表示調整。
 */
@media (min-width: 768px) {
    body.mailshare-help-cleanup-page .mailshare-help-page .search-wrap {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        gap: .5rem !important;
        align-items: stretch !important;
    }
    body.mailshare-help-cleanup-page .mailshare-help-page #helpSearch {
        width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
    }
    body.mailshare-help-cleanup-page .mailshare-help-page .help-search-action {
        display: inline-flex !important;
        width: auto !important;
        min-width: 108px !important;
        min-height: 48px !important;
        padding: .5rem .85rem !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        writing-mode: horizontal-tb !important;
    }
    body.mailshare-help-cleanup-page .mailshare-help-page .help-search-clear {
        min-width: 76px !important;
    }
}
body.mailshare-template-edit-cleanup-page .template-reserved-example,
body.mailshare-template-edit-cleanup-page .template-other-template-link {
    display: block;
    clear: both;
    width: 100%;
    text-align: left;
}
body.mailshare-template-edit-cleanup-page .template-reserved-example-line {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    align-items: center;
    width: 100%;
}
body.mailshare-template-edit-cleanup-page .template-other-template-link a {
    max-width: 100%;
    text-align: left;
    white-space: normal;
}
body.mailshare-mail-detail-cleanup-page .mail-comment-add-form,
body.mailshare-mail-detail-cleanup-page .mail-comment-add-form .form-group,
body.mailshare-mail-detail-cleanup-page .mail-comment-add-textarea {
    width: 100% !important;
    max-width: none !important;
}
body.mailshare-mail-detail-cleanup-page .mail-comment-add-form {
    display: block !important;
}
body.mailshare-mail-detail-cleanup-page .mail-comment-add-textarea {
    display: block !important;
    min-height: 108px;
    resize: vertical;
}
@media (max-width: 767.98px) {
    body.mailshare-maintenance-cleanup-page .maintenance-job-table-compact tbody tr {
        margin-bottom: .65rem !important;
    }
    body.mailshare-maintenance-cleanup-page .maintenance-job-table-compact tbody td {
        min-height: 0 !important;
        padding-top: .42rem !important;
        padding-bottom: .42rem !important;
        line-height: 1.25 !important;
    }
    body.mailshare-maintenance-cleanup-page .maintenance-job-table-compact tbody td::before {
        top: .42rem !important;
        line-height: 1.25 !important;
        transform: none !important;
    }
    body.mailshare-maintenance-cleanup-page .maintenance-job-table-compact .maintenance-job-name strong,
    body.mailshare-maintenance-cleanup-page .maintenance-job-table-compact .maintenance-job-name small {
        line-height: 1.2 !important;
    }
    body.mailshare-maintenance-cleanup-page .maintenance-job-table-compact .maintenance-job-progress {
        min-width: 0 !important;
    }
    body.mailshare-maintenance-cleanup-page .maintenance-job-table-compact .maintenance-error {
        width: auto !important;
        min-width: 0 !important;
    }
    body.mailshare-maintenance-cleanup-page .maintenance-job-table-compact .maintenance-log {
        font-size: 11px !important;
        line-height: 1.25 !important;
    }
}

/* MAILSHARE_REMAINING_INLINE_CSS_11_FILES_20260807
 * 監査で残っていた11ファイルのページ内CSSを集約。
 */

/* portal/kanri/addressbook/companies.php */
body.mailshare-addressbook-companies-page .addressbook-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
        }

        body.mailshare-addressbook-companies-page .addressbook-toolbar-actions {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
        }

        body.mailshare-addressbook-companies-page .addressbook-search-form {
            width: 100%;
        }

        body.mailshare-addressbook-companies-page .addressbook-search-row {
            display: flex;
            flex: 1 1 520px;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
        }

        body.mailshare-addressbook-companies-page .addressbook-toolbar > #addressbook-company-advanced-search {
            flex: 0 0 100%;
            width: 100%;
        }

        body.mailshare-addressbook-companies-page .addressbook-search-row > .form-control {
            flex: 1 1 360px;
            width: auto;
            min-width: 260px;
        }

        body.mailshare-addressbook-companies-page .addressbook-search-row > .btn {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        body.mailshare-addressbook-companies-page .addressbook-advanced {
            background: #f8f9fa;
            border-top: 1px solid #e6e9ed;
        }

        body.mailshare-addressbook-companies-page .addressbook-table {
            margin-bottom: 0;
        }

        body.mailshare-addressbook-companies-page .addressbook-table th {
            background: #faf9f3;
            border-top: 0;
            white-space: nowrap;
            font-size: 13px;
        }

        body.mailshare-addressbook-companies-page .addressbook-table td {
            vertical-align: middle;
            border-left: 0;
            border-right: 0;
        }

        body.mailshare-addressbook-companies-page .addressbook-table.is-compact td {
            padding-top: 6px;
            padding-bottom: 6px;
            font-size: 13px;
        }

        body.mailshare-addressbook-companies-page .addressbook-name-sub, body.mailshare-addressbook-companies-page .addressbook-cell-sub {
            display: block;
            margin-top: 2px;
            color: #6c757d;
            font-size: 12px;
            line-height: 1.35;
        }

        body.mailshare-addressbook-companies-page .addressbook-phone, body.mailshare-addressbook-companies-page .addressbook-address {
            word-break: break-all;
        }

        body.mailshare-addressbook-companies-page .addressbook-count {
            color: #6c757d;
            font-size: 13px;
        }

        body.mailshare-addressbook-companies-page .addressbook-company-bulk-panel {
            border-top: 1px solid #e9ecef;
            background: #f8f9fa;
        }

        body.mailshare-addressbook-companies-page .addressbook-pagination {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
        }

        @media (max-width: 991px) {
            body.mailshare-addressbook-companies-page .addressbook-toolbar {
                align-items: stretch;
            }

            body.mailshare-addressbook-companies-page .addressbook-search-row {
                width: 100%;
                flex-wrap: wrap;
            }

            body.mailshare-addressbook-companies-page .addressbook-search-row > .form-control {
                flex: 1 1 100%;
                width: 100%;
                min-width: 0;
            }
        }
    
        /* MAILSHARE_MOBILE_ADDRESSBOOK_TOOLBAR_FIX_20260804 */
        @media (max-width: 767.98px) {
            body.mailshare-addressbook-companies-page .addressbook-toolbar {
                display: block;
                width: 100%;
            }

            body.mailshare-addressbook-companies-page .addressbook-toolbar-actions {
                display: grid;
                grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.45fr) minmax(0, .8fr);
                gap: .4rem;
                width: 100%;
                margin-bottom: .65rem;
            }

            body.mailshare-addressbook-companies-page .addressbook-toolbar-actions > a, body.mailshare-addressbook-companies-page .addressbook-toolbar-actions > .dropdown {
                min-width: 0;
                width: 100%;
            }

            body.mailshare-addressbook-companies-page .addressbook-toolbar-actions > .dropdown > .btn, body.mailshare-addressbook-companies-page .addressbook-toolbar-actions > a.btn {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: .28rem;
                width: 100% !important;
                min-width: 0 !important;
                height: 42px !important;
                min-height: 42px !important;
                margin: 0 !important;
                padding: .4rem .35rem !important;
                font-size: .88rem !important;
                line-height: 1 !important;
                text-align: center;
                white-space: nowrap !important;
                word-break: keep-all !important;
                overflow-wrap: normal !important;
            }

            body.mailshare-addressbook-companies-page .addressbook-toolbar-actions .btn i {
                display: inline-flex;
                flex: 0 0 auto;
                width: 1em;
                height: 1em;
                margin: 0 !important;
                align-items: center;
                justify-content: center;
                font-size: .95em;
                line-height: 1 !important;
                vertical-align: middle;
            }

            body.mailshare-addressbook-companies-page .addressbook-toolbar-actions .dropdown-toggle::after {
                flex: 0 0 auto;
                margin-left: .15rem;
                vertical-align: middle;
            }

            body.mailshare-addressbook-companies-page .addressbook-search-row {
                display: grid;
                grid-template-columns: minmax(0, 1fr) auto auto;
                align-items: center;
                gap: .4rem;
                width: 100%;
            }

            body.mailshare-addressbook-companies-page .addressbook-search-row > .form-control {
                grid-column: 1 / -1;
                width: 100% !important;
                min-width: 0 !important;
                height: 42px;
                margin: 0;
            }

            body.mailshare-addressbook-companies-page .addressbook-search-row > .btn, body.mailshare-addressbook-companies-page .addressbook-search-row > a.btn {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: auto !important;
                min-width: 0 !important;
                height: 40px !important;
                min-height: 40px !important;
                margin: 0 !important;
                padding: .4rem .7rem !important;
                line-height: 1 !important;
                white-space: nowrap !important;
            }

            body.mailshare-addressbook-companies-page .addressbook-search-row > .btn:first-of-type {
                grid-column: 2;
            }

            body.mailshare-addressbook-companies-page .addressbook-search-row > a.btn {
                grid-column: 3;
            }
        }
        /* /MAILSHARE_MOBILE_ADDRESSBOOK_TOOLBAR_FIX_20260804 */

/* portal/kanri/addressbook/company.php */
body.mailshare-addressbook-company-page .addressbook-editor {
            max-width: 820px;
        }

        body.mailshare-addressbook-company-page .addressbook-editor .card-body {
            padding: 18px 20px 10px;
        }

        body.mailshare-addressbook-company-page .mw-field {
            display: grid;
            grid-template-columns: 145px minmax(0, 1fr);
            gap: 12px;
            align-items: start;
            margin-bottom: 10px;
        }

        body.mailshare-addressbook-company-page .mw-field > label {
            margin: 7px 0 0;
            font-weight: 600;
        }

        body.mailshare-addressbook-company-page .mw-field .form-control {
            min-height: 34px;
            padding: .3rem .55rem;
        }

        body.mailshare-addressbook-company-page .mw-field textarea.form-control {
            min-height: 62px;
            resize: vertical;
        }

        body.mailshare-addressbook-company-page .mw-required {
            color: #dc3545;
        }

        body.mailshare-addressbook-company-page .mw-details {
            margin-top: 14px;
            border-top: 1px solid #e5e7eb;
            padding-top: 12px;
        }

        body.mailshare-addressbook-company-page .mw-details summary {
            cursor: pointer;
            color: #495057;
            font-weight: 600;
            user-select: none;
            margin-bottom: 12px;
        }

        body.mailshare-addressbook-company-page .mw-details[open] summary {
            color: #007bff;
        }

        body.mailshare-addressbook-company-page .addressbook-editor .card-footer {
            padding: 10px 20px 16px;
            background: #fff;
            border-top: 0;
        }

        @media (max-width: 767.98px) {
            body.mailshare-addressbook-company-page .mw-field {
                display: block;
            }

            body.mailshare-addressbook-company-page .mw-field > label {
                display: block;
                margin: 0 0 5px;
            }
        }

/* portal/kanri/addressbook/contact.php */
body.mailshare-addressbook-contact-page .address-history {
            position: relative;
            border-left: 3px solid #dee2e6;
            margin-left: 18px;
            padding-left: 28px;
        }

        body.mailshare-addressbook-contact-page .address-history-item {
            position: relative;
            padding-bottom: 24px;
        }

        body.mailshare-addressbook-contact-page .address-history-icon {
            position: absolute;
            left: -45px;
            top: 0;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            line-height: 32px;
            text-align: center;
            color: #fff;
        }

        body.mailshare-addressbook-contact-page .history-detail {
            white-space: pre-wrap;
            word-break: break-word;
        }

        body.mailshare-addressbook-contact-page .addressbook-editor {
            max-width: 820px;
        }

        body.mailshare-addressbook-contact-page .addressbook-editor .card-body {
            padding: 18px 20px 10px;
        }

        body.mailshare-addressbook-contact-page .mw-field {
            display: grid;
            grid-template-columns: 145px minmax(0, 1fr);
            gap: 12px;
            align-items: start;
            margin-bottom: 10px;
        }

        body.mailshare-addressbook-contact-page .mw-field > label {
            margin: 7px 0 0;
            font-weight: 600;
        }

        body.mailshare-addressbook-contact-page .mw-field .form-control {
            min-height: 34px;
            padding: .3rem .55rem;
        }

        body.mailshare-addressbook-contact-page .mw-field textarea.form-control {
            min-height: 62px;
            resize: vertical;
        }

        body.mailshare-addressbook-contact-page .mw-required {
            color: #dc3545;
        }

        body.mailshare-addressbook-contact-page .mw-details {
            margin-top: 14px;
            border-top: 1px solid #e5e7eb;
            padding-top: 12px;
        }

        body.mailshare-addressbook-contact-page .mw-details summary {
            cursor: pointer;
            color: #495057;
            font-weight: 600;
            user-select: none;
            margin-bottom: 12px;
        }

        body.mailshare-addressbook-contact-page .mw-details[open] summary {
            color: #007bff;
        }

        body.mailshare-addressbook-contact-page .addressbook-editor .card-footer {
            padding: 10px 20px 16px;
            background: #fff;
            border-top: 0;
        }

        body.mailshare-addressbook-contact-page .mw-group-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 4px 18px;
        }

        @media (max-width: 767.98px) {
            body.mailshare-addressbook-contact-page .mw-field {
                display: block;
            }

            body.mailshare-addressbook-contact-page .mw-field > label {
                display: block;
                margin: 0 0 5px;
            }

            body.mailshare-addressbook-contact-page .mw-group-list {
                grid-template-columns: 1fr;
            }
        }

/* portal/kanri/addressbook/index.php */
body.mailshare-addressbook-index-page .addressbook-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
        }

        body.mailshare-addressbook-index-page .addressbook-toolbar-actions {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
        }

        body.mailshare-addressbook-index-page .addressbook-search-form {
            width: 100%;
        }

        body.mailshare-addressbook-index-page .addressbook-search-row {
            display: flex;
            flex: 1 1 520px;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
        }

        body.mailshare-addressbook-index-page .addressbook-toolbar > #addressbook-advanced-search {
            flex: 0 0 100%;
            width: 100%;
        }

        body.mailshare-addressbook-index-page .addressbook-search-row > .form-control {
            flex: 1 1 360px;
            width: auto;
            min-width: 260px;
        }

        body.mailshare-addressbook-index-page .addressbook-search-row > .btn {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        body.mailshare-addressbook-index-page .addressbook-advanced {
            background: #f8f9fa;
            border-top: 1px solid #e6e9ed;
        }

        body.mailshare-addressbook-index-page .addressbook-saved-filter-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        body.mailshare-addressbook-index-page .addressbook-table {
            margin-bottom: 0;
        }

        body.mailshare-addressbook-index-page .addressbook-table th {
            background: #faf9f3;
            border-top: 0;
            white-space: nowrap;
            font-size: 13px;
        }

        body.mailshare-addressbook-index-page .addressbook-table td {
            vertical-align: middle;
            border-left: 0;
            border-right: 0;
        }

        body.mailshare-addressbook-index-page .addressbook-table.is-compact td {
            padding-top: 6px;
            padding-bottom: 6px;
            font-size: 13px;
        }

        body.mailshare-addressbook-index-page .addressbook-name-sub, body.mailshare-addressbook-index-page .addressbook-cell-sub {
            display: block;
            margin-top: 2px;
            color: #6c757d;
            font-size: 12px;
            line-height: 1.35;
        }

        body.mailshare-addressbook-index-page .addressbook-email, body.mailshare-addressbook-index-page .addressbook-phone {
            word-break: break-all;
        }

        body.mailshare-addressbook-index-page .addressbook-count {
            color: #6c757d;
            font-size: 13px;
        }

        body.mailshare-addressbook-index-page .addressbook-bulk-panel {
            border-top: 1px solid #e9ecef;
            background: #f8f9fa;
        }

        body.mailshare-addressbook-index-page .addressbook-pagination {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
        }

        @media (max-width: 991px) {
            body.mailshare-addressbook-index-page .addressbook-toolbar {
                align-items: stretch;
            }

            body.mailshare-addressbook-index-page .addressbook-search-row {
                width: 100%;
                flex-wrap: wrap;
            }

            body.mailshare-addressbook-index-page .addressbook-search-row > .form-control {
                flex: 1 1 100%;
                width: 100%;
                min-width: 0;
            }
        }
    
        /* MAILSHARE_MOBILE_ADDRESSBOOK_TOOLBAR_FIX_20260804 */
        @media (max-width: 767.98px) {
            body.mailshare-addressbook-index-page .addressbook-toolbar {
                display: block;
                width: 100%;
            }

            body.mailshare-addressbook-index-page .addressbook-toolbar-actions {
                display: grid;
                grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.45fr) minmax(0, .8fr);
                gap: .4rem;
                width: 100%;
                margin-bottom: .65rem;
            }

            body.mailshare-addressbook-index-page .addressbook-toolbar-actions > a, body.mailshare-addressbook-index-page .addressbook-toolbar-actions > .dropdown {
                min-width: 0;
                width: 100%;
            }

            body.mailshare-addressbook-index-page .addressbook-toolbar-actions > .dropdown > .btn, body.mailshare-addressbook-index-page .addressbook-toolbar-actions > a.btn {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: .28rem;
                width: 100% !important;
                min-width: 0 !important;
                height: 42px !important;
                min-height: 42px !important;
                margin: 0 !important;
                padding: .4rem .35rem !important;
                font-size: .88rem !important;
                line-height: 1 !important;
                text-align: center;
                white-space: nowrap !important;
                word-break: keep-all !important;
                overflow-wrap: normal !important;
            }

            body.mailshare-addressbook-index-page .addressbook-toolbar-actions .btn i {
                display: inline-flex;
                flex: 0 0 auto;
                width: 1em;
                height: 1em;
                margin: 0 !important;
                align-items: center;
                justify-content: center;
                font-size: .95em;
                line-height: 1 !important;
                vertical-align: middle;
            }

            body.mailshare-addressbook-index-page .addressbook-toolbar-actions .dropdown-toggle::after {
                flex: 0 0 auto;
                margin-left: .15rem;
                vertical-align: middle;
            }

            body.mailshare-addressbook-index-page .addressbook-search-row {
                display: grid;
                grid-template-columns: minmax(0, 1fr) auto auto;
                align-items: center;
                gap: .4rem;
                width: 100%;
            }

            body.mailshare-addressbook-index-page .addressbook-search-row > .form-control {
                grid-column: 1 / -1;
                width: 100% !important;
                min-width: 0 !important;
                height: 42px;
                margin: 0;
            }

            body.mailshare-addressbook-index-page .addressbook-search-row > .btn, body.mailshare-addressbook-index-page .addressbook-search-row > a.btn {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: auto !important;
                min-width: 0 !important;
                height: 40px !important;
                min-height: 40px !important;
                margin: 0 !important;
                padding: .4rem .7rem !important;
                line-height: 1 !important;
                white-space: nowrap !important;
            }

            body.mailshare-addressbook-index-page .addressbook-search-row > .btn:first-of-type {
                grid-column: 2;
            }

            body.mailshare-addressbook-index-page .addressbook-search-row > a.btn {
                grid-column: 3;
            }
        }
        /* /MAILSHARE_MOBILE_ADDRESSBOOK_TOOLBAR_FIX_20260804 */

/* portal/kanri/addressbook/print.php */
body.mailshare-addressbook-print-page {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
            color: #222;
            font-size: 11px;
            margin: 20px;
        }

        body.mailshare-addressbook-print-page h1 {
            font-size: 20px;
            margin: 0 0 5px;
        }

        body.mailshare-addressbook-print-page .meta {
            color: #666;
            margin-bottom: 15px;
        }

        body.mailshare-addressbook-print-page .message {
            padding: 12px;
            border: 1px solid #ccc;
            background: #f8f8f8;
        }

        body.mailshare-addressbook-print-page .error {
            border-color: #d9534f;
            color: #a94442;
            background: #f9e5e5;
        }

        body.mailshare-addressbook-print-page table {
            width: 100%;
            border-collapse: collapse;
        }

        body.mailshare-addressbook-print-page th, body.mailshare-addressbook-print-page td {
            border: 1px solid #999;
            padding: 5px;
            vertical-align: top;
            word-break: break-word;
        }

        body.mailshare-addressbook-print-page th {
            background: #eee;
        }

        body.mailshare-addressbook-print-page .no-print {
            display: flex;
            gap: 8px;
            margin-bottom: 15px;
        }

        body.mailshare-addressbook-print-page .no-print button {
            padding: 6px 14px;
            cursor: pointer;
        }

        @media print {
            body.mailshare-addressbook-print-page .no-print {
                display: none;
            }

            body.mailshare-addressbook-print-page {
                margin: 0;
            }

            body.mailshare-addressbook-print-page thead {
                display: table-header-group;
            }

            body.mailshare-addressbook-print-page tr {
                page-break-inside: avoid;
            }
        }

/* portal/kanri/broadcasts/edit.php */
body.mailshare-broadcast-edit-page .broadcast-edit-card .form-group.row {margin-bottom:.8rem}body.mailshare-broadcast-edit-page .broadcast-edit-card .col-form-label {font-weight:600}body.mailshare-broadcast-edit-page .broadcast-body-text {min-height:260px;resize:vertical}body.mailshare-broadcast-edit-page .broadcast-html-text {min-height:210px;resize:vertical;font-family:Consolas,Monaco,monospace;font-size:.9rem}body.mailshare-broadcast-edit-page .broadcast-reserved-sticky {position:sticky;top:70px}body.mailshare-broadcast-edit-page .broadcast-reserved-table {margin-bottom:0}body.mailshare-broadcast-edit-page .broadcast-reserved-table th, body.mailshare-broadcast-edit-page .broadcast-reserved-table td {padding:.45rem .6rem;vertical-align:middle}body.mailshare-broadcast-edit-page .broadcast-reserved-label {font-weight:600}body.mailshare-broadcast-edit-page .broadcast-reserved-note {display:block;color:#868e96;font-size:.74rem;font-weight:400;line-height:1.3}body.mailshare-broadcast-edit-page .broadcast-reserved-token {font-family:Consolas,Monaco,monospace;font-weight:700;white-space:nowrap;text-decoration:none!important}body.mailshare-broadcast-edit-page .broadcast-copy-notice {position:fixed;z-index:1100;right:22px;bottom:22px;display:none;min-width:250px;box-shadow:0 4px 16px rgba(0,0,0,.18)}body.mailshare-broadcast-edit-page .broadcast-template-target:focus {border-color:#80bdff;box-shadow:0 0 0 .2rem rgba(0,123,255,.16)}
@media(max-width:991.98px){body.mailshare-broadcast-edit-page .broadcast-reserved-sticky {position:static}}@media(max-width:767.98px){body.mailshare-broadcast-edit-page .broadcast-edit-card .col-form-label {padding-bottom:.25rem}body.mailshare-broadcast-edit-page .broadcast-body-text {min-height:220px}body.mailshare-broadcast-edit-page .broadcast-html-text {min-height:180px}}
body.mailshare-broadcast-edit-page .broadcast-editor-mode {
    display:flex;
    flex-wrap:wrap;
    gap:.4rem;
    margin-bottom:.55rem
}
body.mailshare-broadcast-edit-page .broadcast-editor-mode .btn {
    min-width:120px
}
body.mailshare-broadcast-edit-page .broadcast-editor-panel[hidden] {
    display:none!important
}
body.mailshare-broadcast-edit-page .broadcast-rich-shell {
    overflow:hidden;
    border:1px solid #ced4da;
    border-radius:.25rem;
    background:#fff
}
body.mailshare-broadcast-edit-page .broadcast-rich-toolbar {
    display:flex;
    flex-wrap:wrap;
    gap:.25rem;
    padding:.45rem;
    border-bottom:1px solid #dee2e6;
    background:#f8f9fa
}
body.mailshare-broadcast-edit-page .broadcast-rich-editor {
    min-height:260px;
    max-height:620px;
    padding:.75rem;
    overflow:auto;
    outline:none;
    line-height:1.6
}
body.mailshare-broadcast-edit-page .broadcast-rich-editor:empty:before {
    content:attr(data-placeholder);
    color:#adb5bd;
    pointer-events:none
}
body.mailshare-broadcast-edit-page .broadcast-rich-editor[contenteditable="false"] {
    background:#e9ecef
}

/* portal/kanri/broadcasts/index.php */
/* MAILSHARE_DESKTOP_BROADCAST_ACTION_GAP_20260819_V2 */
@media (min-width: 768px) {
    body.mailshare-broadcast-index-page .content-header .col-sm-5.text-right {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: .5rem !important;
    }

    body.mailshare-broadcast-index-page .content-header .col-sm-5.text-right > .btn {
        margin: 0 !important;
    }
}
/* /MAILSHARE_DESKTOP_BROADCAST_ACTION_GAP_20260819_V2 */

/* MAILSHARE_MOBILE_BROADCAST_TOOLBAR_FIX_20260804 */
        @media (max-width: 767.98px) {
            body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-actions {
                display: grid !important;
                grid-template-columns:
                    minmax(0, 1.05fr)
                    minmax(0, 1.55fr)
                    minmax(0, .75fr);
                gap: .4rem !important;
                width: 100%;
                margin: 0 0 .6rem 0 !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page
            .mailshare-broadcast-actions > * {
                min-width: 0;
                width: 100%;
                margin: 0 !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page
            .mailshare-broadcast-actions .btn {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: .28rem;
                width: 100% !important;
                min-width: 0 !important;
                height: 42px !important;
                min-height: 42px !important;
                margin: 0 !important;
                padding: .4rem .3rem !important;
                font-size: .87rem !important;
                line-height: 1 !important;
                text-align: center;
                white-space: nowrap !important;
                word-break: keep-all !important;
                overflow-wrap: normal !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page
            .mailshare-broadcast-actions .btn i {
                display: inline-flex;
                flex: 0 0 auto;
                width: 1em;
                height: 1em;
                margin: 0 !important;
                align-items: center;
                justify-content: center;
                font-size: .95em;
                line-height: 1 !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page
            .mailshare-broadcast-report {
                grid-column: 2 / 4;
                justify-self: end;
                width: auto !important;
                min-width: 132px !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page
            .mailshare-broadcast-search-card {
                margin-top: .65rem !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page
            .mailshare-broadcast-search-card .card-header {
                padding: .65rem .8rem !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page
            .mailshare-broadcast-search-form {
                display: grid !important;
                grid-template-columns: auto auto;
                gap: .4rem !important;
                align-items: center;
                width: 100%;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page
            .mailshare-broadcast-search-form .form-control, body.mailshare-broadcast-index-page .mailshare-broadcast-page
            .mailshare-broadcast-search-form select {
                grid-column: 1 / -1;
                width: 100% !important;
                min-width: 0 !important;
                height: 42px !important;
                margin: 0 !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page
            .mailshare-broadcast-search-form .btn {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: auto !important;
                min-width: 0 !important;
                height: 40px !important;
                min-height: 40px !important;
                margin: 0 !important;
                padding: .4rem .75rem !important;
                line-height: 1 !important;
                white-space: nowrap !important;
                word-break: keep-all !important;
            }
        }
        /* /MAILSHARE_MOBILE_BROADCAST_TOOLBAR_FIX_20260804 */

        /* MAILSHARE_MOBILE_BROADCAST_FINAL_FIX_20260804 */
        @media (max-width: 767.98px) {
            /*
             * 見出しと上部操作ボタンの余白を確保。
             * 4ボタンは2列×2段で均等配置。
             */
            body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-actions {
                display: grid !important;
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: .55rem !important;
                width: 100% !important;
                margin: .65rem 0 .85rem !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-actions > *, body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-actions > a, body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-actions > .btn-group {
                width: 100% !important;
                min-width: 0 !important;
                margin: 0 !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-actions .btn {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: 100% !important;
                min-width: 0 !important;
                height: 42px !important;
                min-height: 42px !important;
                padding: .4rem .4rem !important;
                margin: 0 !important;
                font-size: .88rem !important;
                line-height: 1 !important;
                white-space: nowrap !important;
                word-break: keep-all !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-report {
                grid-column: auto !important;
                justify-self: stretch !important;
                width: 100% !important;
                min-width: 0 !important;
            }

            /*
             * 検索欄と状態選択の間隔を確保。
             */
            body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-search-form {
                display: flex !important;
                flex-wrap: wrap !important;
                gap: .55rem .45rem !important;
                width: 100% !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-search-form .form-control, body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-search-form select {
                flex: 0 0 100% !important;
                width: 100% !important;
                min-width: 0 !important;
                height: 42px !important;
                margin: 0 !important;
                border-radius: .25rem !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-search-form .btn {
                flex: 0 0 auto !important;
                width: auto !important;
                min-width: 64px !important;
                height: 40px !important;
                min-height: 40px !important;
                margin: 0 !important;
            }

            /*
             * 一覧は横スクロール前提で列幅を確保。
             * 配信名を細くしすぎず、縦長化を防ぐ。
             */
            body.mailshare-broadcast-index-page .mailshare-broadcast-page .table-responsive {
                overflow-x: auto !important;
                -webkit-overflow-scrolling: touch;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page table.mailshare-broadcast-final-table {
                min-width: 980px !important;
                width: 980px !important;
                table-layout: fixed !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page table.mailshare-broadcast-final-table th, body.mailshare-broadcast-index-page .mailshare-broadcast-page table.mailshare-broadcast-final-table td {
                padding: .45rem .5rem !important;
                vertical-align: middle !important;
                line-height: 1.25 !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-col-name {
                width: 180px !important;
                min-width: 180px !important;
                max-width: 180px !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-col-subject {
                width: 180px !important;
                min-width: 180px !important;
                max-width: 180px !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page td.mailshare-broadcast-col-name, body.mailshare-broadcast-index-page .mailshare-broadcast-page td.mailshare-broadcast-col-subject {
                white-space: normal !important;
                word-break: break-word !important;
                overflow-wrap: anywhere !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-col-operation {
                width: 105px !important;
                min-width: 105px !important;
                max-width: 105px !important;
                text-align: center !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-result-button {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: auto !important;
                min-width: 70px !important;
                height: 34px !important;
                min-height: 34px !important;
                padding: .3rem .55rem !important;
                margin: 0 !important;
                font-size: .84rem !important;
                line-height: 1 !important;
                white-space: nowrap !important;
                word-break: keep-all !important;
                overflow-wrap: normal !important;
                writing-mode: horizontal-tb !important;
            }

            body.mailshare-broadcast-index-page .mailshare-broadcast-page .mailshare-broadcast-result-button i {
                margin-right: .25rem !important;
                writing-mode: horizontal-tb !important;
            }

            /*
             * 既存の選択行色などは変更しない。
             */
        }
        /* /MAILSHARE_MOBILE_BROADCAST_FINAL_FIX_20260804 */

/* portal/kanri/interactions/edit.php */
/* アドレス帳の登録画面と同じく、フォームを左寄せで表示する */
        body.mailshare-interaction-edit-page .interaction-form-wrap {
            width: 100%;
            max-width: 820px;
            margin-left: 0 !important;
            margin-right: auto !important;
        }

        body.mailshare-interaction-edit-page .interaction-form-card .card-body {
            padding: 1rem 1.15rem;
        }

        body.mailshare-interaction-edit-page .interaction-horizontal-row {
            margin-bottom: .85rem;
        }

        body.mailshare-interaction-edit-page .interaction-horizontal-row > label {
            font-weight: 600;
            margin-bottom: .35rem;
        }

        body.mailshare-interaction-edit-page .interaction-other-toggle {
            border-top: 1px solid #e5e5e5;
            padding-top: .8rem;
            margin-top: 1rem;
        }

        body.mailshare-interaction-edit-page .interaction-other-area {
            border-top: 1px solid #e5e5e5;
            margin-top: .8rem;
            padding-top: 1rem;
        }

        body.mailshare-interaction-edit-page .interaction-custom-field {
            margin-bottom: .85rem;
        }

        body.mailshare-interaction-edit-page .interaction-form-actions {
            border-top: 1px solid #e5e5e5;
            margin-top: 1rem;
            padding-top: 1rem;
        }

        body.mailshare-interaction-edit-page .interaction-help-text {
            color: #6c757d;
            font-size: .82rem;
            margin-top: .25rem;
        }

        @media (min-width: 768px) {
            body.mailshare-interaction-edit-page .interaction-horizontal-row {
                display: flex;
                align-items: flex-start;
            }

            body.mailshare-interaction-edit-page .interaction-horizontal-row > label {
                flex: 0 0 190px;
                max-width: 190px;
                padding-top: .45rem;
                padding-right: 1rem;
            }

            body.mailshare-interaction-edit-page .interaction-horizontal-control {
                flex: 1 1 auto;
                min-width: 0;
                max-width: 720px;
            }

            body.mailshare-interaction-edit-page .interaction-horizontal-control.wide {
                max-width: none;
            }
        }

        /* MAILSHARE_INTERACTION_CUSTOMER_SEARCH_20260804 */
        body.mailshare-interaction-edit-page .interaction-contact-select2 {
            width: 100% !important;
        }

        body.mailshare-interaction-edit-page .interaction-contact-select2 .select2-selection--single {
            min-height: 38px;
        }

        body.mailshare-interaction-edit-page .interaction-contact-select2
        .select2-selection--single
        .select2-selection__rendered {
            line-height: 36px;
            padding-left: .75rem;
            padding-right: 2rem;
        }

        body.mailshare-interaction-edit-page .interaction-contact-select2
        .select2-selection--single
        .select2-selection__arrow {
            height: 36px;
        }

        body.mailshare-interaction-edit-page .select2-container--bootstrap4
        .select2-dropdown
        .select2-search__field {
            min-height: 38px;
            font-size: 1rem;
        }

        @media (max-width: 767.98px) {
            body.mailshare-interaction-edit-page .select2-container {
                width: 100% !important;
            }

            body.mailshare-interaction-edit-page .select2-dropdown {
                font-size: 1rem;
            }

            body.mailshare-interaction-edit-page .select2-results__option {
                padding: .65rem .75rem;
                white-space: normal;
                word-break: break-word;
            }
        }

/* portal/kanri/interactions/index.php */
body.mailshare-interaction-index-page .interaction-toolbar-card .card-body {
            padding: .75rem;
        }

        body.mailshare-interaction-index-page .interaction-toolbar-main {
            display: flex;
            align-items: center;
            gap: .5rem;
        }

        body.mailshare-interaction-index-page .interaction-toolbar-actions {
            display: flex;
            flex: 0 0 auto;
            flex-wrap: wrap;
            gap: .35rem;
        }

        body.mailshare-interaction-index-page .interaction-search-form {
            display: flex;
            flex: 1 1 auto;
            min-width: 280px;
            gap: .4rem;
        }

        body.mailshare-interaction-index-page .interaction-search-form .form-control {
            min-width: 0;
        }

        body.mailshare-interaction-index-page .interaction-detail-search {
            border-top: 1px solid #dee2e6;
            margin-top: .75rem;
            padding-top: .75rem;
        }

        body.mailshare-interaction-index-page .interaction-saved-condition {
            display: inline-flex;
            align-items: center;
            border: 1px solid #ced4da;
            border-radius: 3px;
            background: #fff;
            margin: 0 .35rem .35rem 0;
            overflow: hidden;
        }

        body.mailshare-interaction-index-page .interaction-saved-condition > a {
            display: inline-flex;
            align-items: center;
            padding: .35rem .55rem;
            color: #495057;
        }

        body.mailshare-interaction-index-page .interaction-saved-condition .condition-count {
            margin-left: .4rem;
            font-weight: 700;
        }

        body.mailshare-interaction-index-page .interaction-saved-condition form {
            margin: 0;
            border-left: 1px solid #dee2e6;
        }

        body.mailshare-interaction-index-page .interaction-saved-condition form button {
            border: 0;
            background: transparent;
            color: #dc3545;
            padding: .35rem .5rem;
        }

        body.mailshare-interaction-index-page .interaction-list-table th {
            white-space: nowrap;
            background: #faf9f4;
            border-top: 0;
        }

        body.mailshare-interaction-index-page .interaction-list-table td {
            vertical-align: middle;
        }

        body.mailshare-interaction-index-page .interaction-list-table.interaction-compact td {
            padding-top: .3rem;
            padding-bottom: .3rem;
        }

        body.mailshare-interaction-index-page .interaction-list-title {
            min-width: 300px;
        }

        body.mailshare-interaction-index-page .interaction-list-title a {
            font-weight: 700;
        }

        body.mailshare-interaction-index-page .interaction-list-sub {
            display: block;
            color: #6c757d;
            font-size: .82rem;
            line-height: 1.35;
            margin-top: .15rem;
        }

        body.mailshare-interaction-index-page .interaction-list-meta {
            min-width: 150px;
            line-height: 1.5;
        }

        body.mailshare-interaction-index-page .interaction-list-contact {
            min-width: 180px;
        }

        body.mailshare-interaction-index-page .interaction-management-panel {
            border: 1px solid #dee2e6;
            border-radius: .25rem;
            background: #fff;
            margin-bottom: 1rem;
        }

        body.mailshare-interaction-index-page .interaction-management-panel summary {
            cursor: pointer;
            padding: .65rem .85rem;
            color: #495057;
            font-weight: 600;
        }

        body.mailshare-interaction-index-page .interaction-management-panel .management-body {
            border-top: 1px solid #dee2e6;
            padding: .85rem;
        }

        @media (max-width: 991.98px) {
            body.mailshare-interaction-index-page .interaction-toolbar-main {
                align-items: stretch;
                flex-direction: column;
            }

            body.mailshare-interaction-index-page .interaction-toolbar-actions, body.mailshare-interaction-index-page .interaction-search-form {
                width: 100%;
            }
        }

        @media (max-width: 575.98px) {
            body.mailshare-interaction-index-page .interaction-search-form {
                flex-wrap: wrap;
                min-width: 0;
            }

            body.mailshare-interaction-index-page .interaction-search-form .form-control {
                flex: 1 1 100%;
            }
        }
    
        /* MAILSHARE_MOBILE_INTERACTION_TOOLBAR_FIX_20260804 */
        @media (max-width: 575.98px) {
            body.mailshare-interaction-index-page .interaction-toolbar-card .card-body {
                padding: .65rem;
            }

            body.mailshare-interaction-index-page .interaction-toolbar-main {
                gap: .65rem;
            }

            body.mailshare-interaction-index-page .interaction-toolbar-actions {
                display: grid;
                grid-template-columns:
                    minmax(0, 1.2fr)
                    minmax(0, 1.45fr)
                    minmax(0, .85fr);
                gap: .4rem;
                width: 100%;
            }

            body.mailshare-interaction-index-page .interaction-toolbar-actions > a, body.mailshare-interaction-index-page .interaction-toolbar-actions > .btn-group {
                min-width: 0;
                width: 100%;
            }

            body.mailshare-interaction-index-page .interaction-toolbar-actions > a.btn, body.mailshare-interaction-index-page .interaction-toolbar-actions > .btn-group > .btn {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                gap: .28rem;
                width: 100% !important;
                min-width: 0 !important;
                height: 42px !important;
                min-height: 42px !important;
                margin: 0 !important;
                padding: .4rem .32rem !important;
                font-size: .88rem !important;
                line-height: 1 !important;
                text-align: center;
                white-space: nowrap !important;
                word-break: keep-all !important;
                overflow-wrap: normal !important;
            }

            body.mailshare-interaction-index-page .interaction-toolbar-actions .btn i {
                display: inline-flex;
                flex: 0 0 auto;
                width: 1em;
                height: 1em;
                margin: 0 !important;
                align-items: center;
                justify-content: center;
                font-size: .95em;
                line-height: 1 !important;
            }

            body.mailshare-interaction-index-page .interaction-toolbar-actions
            .dropdown-toggle::after {
                flex: 0 0 auto;
                margin-left: .12rem;
            }

            body.mailshare-interaction-index-page .interaction-search-form {
                display: grid;
                grid-template-columns: auto auto;
                align-items: center;
                gap: .4rem;
                width: 100%;
                min-width: 0;
            }

            body.mailshare-interaction-index-page .interaction-search-form .form-control {
                grid-column: 1 / -1;
                width: 100% !important;
                min-width: 0 !important;
                height: 42px !important;
                margin: 0 !important;
            }

            body.mailshare-interaction-index-page .interaction-search-form .btn {
                display: inline-flex !important;
                align-items: center !important;
                justify-content: center !important;
                width: auto !important;
                min-width: 0 !important;
                height: 40px !important;
                min-height: 40px !important;
                margin: 0 !important;
                padding: .4rem .7rem !important;
                line-height: 1 !important;
                white-space: nowrap !important;
                word-break: keep-all !important;
            }

            body.mailshare-interaction-index-page .interaction-search-form .btn[type="submit"] {
                justify-self: start;
            }

            body.mailshare-interaction-index-page .interaction-search-form
            .btn[data-target="#interactionDetailedSearch"] {
                justify-self: start;
            }
        }
        /* /MAILSHARE_MOBILE_INTERACTION_TOOLBAR_FIX_20260804 */

/* portal/kanri/interactions/print.php */
body.mailshare-interaction-print-page {
            font-family:
                -apple-system,
                BlinkMacSystemFont,
                "Segoe UI",
                "Noto Sans JP",
                sans-serif;
            color:#222;
            font-size:12px;
        }

        body.mailshare-interaction-print-page .no-print {
            margin-bottom:16px;
        }

        body.mailshare-interaction-print-page h1 {
            font-size:22px;
            margin-bottom:16px;
        }

        body.mailshare-interaction-print-page table {
            width:100%;
            border-collapse:collapse;
        }

        body.mailshare-interaction-print-page th, body.mailshare-interaction-print-page td {
            border:1px solid #999;
            padding:6px;
            vertical-align:top;
        }

        body.mailshare-interaction-print-page th {
            background:#eee;
        }

        body.mailshare-interaction-print-page .detail {
            white-space:pre-wrap;
            word-break:break-word;
            line-height:1.7;
        }

        body.mailshare-interaction-print-page dl {
            display:grid;
            grid-template-columns:160px 1fr;
            gap:0;
            border-top:1px solid #999;
            border-left:1px solid #999;
        }

        body.mailshare-interaction-print-page dt, body.mailshare-interaction-print-page dd {
            margin:0;
            padding:8px;
            border-right:1px solid #999;
            border-bottom:1px solid #999;
        }

        body.mailshare-interaction-print-page dt {
            background:#eee;
            font-weight:bold;
        }

        @media print {
            body.mailshare-interaction-print-page .no-print {
                display:none;
            }

            body.mailshare-interaction-print-page {
                margin:0;
            }

            body.mailshare-interaction-print-page tr {
                page-break-inside:avoid;
            }
        }

/* 会社一覧の列幅 */
body.mailshare-addressbook-companies-page .addressbook-company-column-select {
    width: 42px;
}
body.mailshare-addressbook-companies-page .addressbook-company-column-name {
    min-width: 220px;
}
body.mailshare-addressbook-companies-page .addressbook-company-column-code,
body.mailshare-addressbook-companies-page .addressbook-company-column-related,
body.mailshare-addressbook-companies-page .addressbook-company-column-updated {
    min-width: 130px;
}
body.mailshare-addressbook-companies-page .addressbook-company-column-phone {
    min-width: 150px;
}
body.mailshare-addressbook-companies-page .addressbook-company-column-address {
    min-width: 260px;
}
body.mailshare-addressbook-companies-page .addressbook-company-column-group {
    min-width: 180px;
}

/* 顧客一覧の列幅 */
body.mailshare-addressbook-index-page .addressbook-contact-column-select {
    width: 42px;
}
body.mailshare-addressbook-index-page .addressbook-contact-column-name {
    min-width: 190px;
}
body.mailshare-addressbook-index-page .addressbook-contact-column-company {
    min-width: 170px;
}
body.mailshare-addressbook-index-page .addressbook-contact-column-phone {
    min-width: 135px;
}
body.mailshare-addressbook-index-page .addressbook-contact-column-email {
    min-width: 230px;
}
body.mailshare-addressbook-index-page .addressbook-contact-column-group {
    min-width: 180px;
}
body.mailshare-addressbook-index-page .addressbook-contact-column-history {
    min-width: 120px;
}

body.mailshare-addressbook-index-page .addressbook-groups,
body.mailshare-addressbook-companies-page .addressbook-groups {
    white-space: normal;
    line-height: 1.7;
}

body.mailshare-broadcast-edit-page .broadcast-recipient-scroll {
    max-height: 440px;
    overflow: auto;
}
body.mailshare-broadcast-edit-page .broadcast-comment-text {
    white-space: pre-wrap;
}

body.mailshare-interaction-edit-page .interaction-duration-input {
    max-width: 260px;
}

body.mailshare-interaction-index-page .interaction-bulk-delete-input {
    max-width: 460px;
}

body.mailshare-interaction-print-page .interaction-print-empty {
    padding: 24px;
    text-align: center;
}

/* MAILSHARE_BROADCAST_EDIT_HEADER_BUTTON_GAP_20260807
 * 一斉配信編集：上部操作ボタンの間隔を統一。
 */
body.mailshare-broadcast-edit-page
.content-header
.col-sm-4.text-right {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .5rem !important;
    align-items: center !important;
    justify-content: flex-end !important;
}

body.mailshare-broadcast-edit-page
.content-header
.col-sm-4.text-right > .btn {
    margin: 0 !important;
}

@media (max-width: 767.98px) {
    body.mailshare-broadcast-edit-page
    .content-header
    .col-sm-4.text-right {
        margin-top: .5rem !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }
}
