/* ==========================================================================
   管理画面（自治体・マネージャー）専用CSS
   ========================================================================== */

/* ログインフォーム */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3680 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.login-card .form-group {
    display: block;
    padding: 0;
    border-bottom: none;
    margin-bottom: 20px;
}

.login-card .form-group > label:first-child {
    width: auto;
    min-width: unset;
    padding-top: 0;
    padding-right: 0;
    margin-bottom: 0.5rem;
}

.login-title {
    text-align: center;
    font-size: 2.4rem;

    color: var(--primary-color);
    margin-bottom: 30px;
}

/* ==========================================================================
   サイドバーレイアウト
   ========================================================================== */

/* サイドバー付きレイアウト: ヘッダー両端揃え + コンテンツ左寄せ */
.has-sidebar .header .container {
    max-width: none;
}

.has-sidebar .main-content .container {
    max-width: none;
    margin: 0;
}

.has-sidebar .footer .container {
    max-width: none;
}

/* サイドバー付きレイアウトのラッパー */
.layout-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

.layout-body .main-content {
    flex: 1;
    min-width: 0;
    padding: 40px 20px 20px 20px;
}

.layout-body .main-content .container {
    padding: 0;
}

/* サイドバー */
.sidebar {
    width: 23em;
    flex-shrink: 0;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    padding-top: 40px;
}

/* サイドバーユーザー情報 */
.sidebar-user-info {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    margin-bottom: 3em;
}

.sidebar-user-info-name {
    font-size: 160%;
    margin-bottom: 0.5em;
    position: relative;
}

.sidebar-user-info-name::before {
    content: "User Name";
    position: absolute;
    top: -1.3em;
    left: 0;
    font-size: 1rem;
    color: #777;
}

.sidebar-user-info-id {
    font-size: 1.2rem;
    color: var(--text-color);
    word-break: break-all;
}

.sidebar-user-info-id span {
    display: inline-block;
    background-color: rgba(36, 72, 160, 0.1);
    padding: 0.1em 0.7em;
    border-radius: 100px;
    margin-right: 0.3em;
    font-size: 1rem;
}

.sidebar-nav {
    padding: 0 16px;
    flex: 1;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.4rem;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 3px;
    margin-bottom: 2px;
}

.sidebar-item:hover {
    background-color: var(--background-color);
    text-decoration: none;
    color: var(--primary-color);
}

.sidebar-item.active {
    background-color: var(--primary-color-9);
    color: var(--primary-color);
}

.sidebar-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* サイドバー下部（ユーザー情報） */
.sidebar-footer {
    padding: 16px 20px;
    font-size: 1.2rem;
    color: var(--gray-color);
}

.sidebar-user-name {
    color: var(--text-color);
    margin-bottom: 6px;
    font-size: 1.3rem;
}

.sidebar-logout {
    color: var(--gray-color);
    text-decoration: none;
    font-size: 1.2rem;
}

.sidebar-logout:hover {
    color: var(--error-color);
    text-decoration: underline;
}

/* ハンバーガーボタン（モバイルのみ表示） */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-color);
}

/* サイドバーオーバーレイ（モバイルのみ） */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* ==========================================================================
   ナビゲーションタブ
   ========================================================================== */

.nav {
    display: flex;
    list-style: none;
    margin-bottom: 20px;
}

.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    padding: 10px 20px;
    margin-right: 4px;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    color: var(--text-color);
}

.nav-tabs .nav-link:hover {
    background-color: var(--background-color);
}

.nav-tabs .nav-link.active {
    background-color: var(--white);
    border-color: var(--border-color) var(--border-color) var(--white);
    border-bottom-color: var(--white);

}

/* ==========================================================================
   パンくずリスト
   ========================================================================== */

.breadcrumb-nav {
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.4rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    padding: 0 8px;
    color: #999;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active span {
    color: #666;

}

/* ==========================================================================
   バッジ
   ========================================================================== */

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 1.2rem;

    line-height: 1;
    text-align: center;
    white-space: nowrap;
    border-radius: 3px;
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.badge-success {
    background-color: var(--success-color);
    color: var(--white);
}

.badge-warning {
    background-color: var(--warning-color);
    color: var(--white);
}

.badge-danger {
    background-color: var(--error-color);
    color: var(--white);
}

.badge-secondary {
    background-color: var(--gray-color);
    color: var(--white);
}

/* NTT GW 設定値を一目で分かるようにするバッジ（NTTブランドカラー #0072bc） */
.badge-ntt {
    background-color: #0072bc;
    color: var(--white);
}

/* 銀行マスタ由来の非対応ガード注釈（チェックボックス直下・赤字） */
.guard-note {
    display: block;
    margin-top: 4px;
    font-size: 1.2rem;
    color: var(--error-color);
}

/* ステップバッジ */
.step-badge {
    background: var(--gray-color2);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 1.2rem;
    display: inline-block;
    margin-right: 0.7em;
}

/* ==========================================================================
   ページヘッダー
   ========================================================================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 2.4rem;
    margin: 0;
}

.page-header-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.7rem;
}

.page-header-context {
    display: inline-block;
    padding: 0.3em 1em;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-color2);
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    line-height: 1;
}

.page-header-actions {
    display: flex;
    gap: 10px;
}

.page-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 1.7rem;
    background-color: var(--secondary-color);
    padding: 0.7em;
}

/* ==========================================================================
   ダッシュボード固有
   ========================================================================== */

/* Dashboard grid layouts */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
}

.dashboard-status-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.7em;
}

/* Stats */
.heading-label {
    font-size: 1.4rem;
    color: var(--gray-color);
    margin-bottom: 10px;
}

.stat-large {
    font-size: 3.6rem;
    margin: 0;
    color: var(--primary-color);
}

.empty-state {
    color: var(--gray-color);
    text-align: center;
    padding: 40px 0;
}

/* ==========================================================================
   グリッドシステム
   ========================================================================== */

.row {
    display: flex;
    gap: 10px;
}

.col-md-2 {
    flex: 0 0 15%;
}

.col-md-5 {
    flex: 0 0 40%;
}

.col-md-10 {
    flex: 0 0 83%;
}

/* ==========================================================================
   受付フォーム管理画面用
   ========================================================================== */

/* オプション項目 */
.option-item {
    padding: 15px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 12px;
}

/* フォームアクション */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 20px;
    margin-top: 20px;
}

/* フォームURL表示 */
.form-url-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    white-space: nowrap;
}

.form-url-box-large {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 15px;
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
}

.form-url-input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1.2rem;
    background: var(--background-color);
    min-width: 200px;
}

/* フォームURL欄に並べる操作ボタン（開く/プレビュー/接続試験）。URL入力(flex:1)＋ボタンを横並び、狭ければ折り返す。 */
.form-url-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* 上記ボタンはパディングだけ小さく（共通デザインは踏襲） */
.form-url-cell .btn {
    padding: 0.2em 0.7em;
}

.form-url-input-large {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1.4rem;
    background: var(--white);
    font-family: monospace;
}

/* カード内フレックスヘッダー */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-flex h2 {
    margin: 0;
}

/* ==========================================================================
   テーブル（データリスト）
   ========================================================================== */

/* テーブル専用カラーパレット */
:root {
    --table-border-color: #cccccc;
    --table-row-even: #f3f3f3;
    --table-row-hover: rgba(36, 72, 160, 0.1);
    --table-cell-divider: #ffffff;
    --table-sort-arrow: #aaaaaa;
    --table-sort-active: #444444;
    --table-text-color: #333333;
    --table-link-color: #333333;
    --table-bottom-border: #f3f3f3;
}

/* データリストテーブル */
.table-datalist {
    overflow-x: auto;
}

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

/* ヘッダー */
.table-datalist table thead tr:hover {
    background-color: inherit;
}

.table-datalist table thead tr th {
    font-size: 100%;
    border-top: 2px solid var(--table-border-color);
    border-bottom: 2px solid var(--table-border-color);
    padding: 1.3em 0.7em;
    text-align: left;
}

/* 行スタイル */
.table-datalist table tr:nth-of-type(2n) {
    background-color: var(--table-row-even);
}

.table-datalist table tr:last-of-type {
    border-bottom: 3px solid var(--table-bottom-border);
}

.table-datalist table tr:hover {
    background-color: var(--table-row-hover);
}

/* セル */
.table-datalist table td,
.table-datalist table th {
    white-space: nowrap;
    vertical-align: middle;
    font-size: 100%;
    border-right: 1px solid var(--table-cell-divider);
    padding:0.7em;
}


/* テーブルセル内テキスト省略 */
.text-truncate-cell {
    display: block;
    max-width: 20em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* テーブル内アクションボタン横並び */
.table-actions {
    display: flex;
    gap: 0.625rem;
    white-space: nowrap;
}

/* table-bordered（フォーム詳細等のボーダー付きテーブル） */
.table-bordered {
    border: 1px solid var(--table-border-color);
    overflow: hidden;
}

.table-bordered th,
.table-bordered td {
    border-right: 1px solid var(--table-border-color);
    border-bottom: 1px solid var(--table-border-color);
}

.table-bordered th:last-child,
.table-bordered td:last-child {
    border-right: none;
}

.table-bordered tbody tr:last-child td {
    border-bottom: none;
}

.table-bordered thead tr:first-child th:first-child {
    border-top-left-radius: 7px;
}

.table-bordered thead tr:first-child th:last-child {
    border-top-right-radius: 7px;
}

.table-bordered tbody tr:last-child td:first-child {
    border-bottom-left-radius: 7px;
}

.table-bordered tbody tr:last-child td:last-child {
    border-bottom-right-radius: 7px;
}

/* ==========================================================================
   管理画面用ユーティリティ
   ========================================================================== */

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 1.4rem;
}

.w-50px {
    width: 50px;
}

.w-100px {
    width: 100px;
}

.w-150px {
    width: 150px;
}

.w-200px {
    width: 200px;
}

.w-300px {
    width: 300px;
}

.w-400px {
    width: 400px;
}

/* Field states */
.field-disabled {
    width: 400px;
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.field-readonly {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Options list */
.options-list {
    font-size: 1.2rem;
}

/* Label utilities */
.label-nowrap {
    margin: 0;
    white-space: nowrap;
}

/* Button group */
.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   レスポンシブ（管理画面固有）
   ========================================================================== */

@media (max-width: 768px) {
    /* サイドバーのモバイル対応 */
    .sidebar {
        position: fixed;
        top: 0;
        left: -23em;
        width: 23em;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: none;
    }

    .sidebar.open {
        left: 0;
        box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
    }

    .sidebar-toggle {
        display: block;
    }

    .header-nav {
        display: none;
    }

    .login-card {
        padding: 30px 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .form-actions .btn {
        width: 100%;
    }
}


.action-buttons {
    display: flex;
    gap: 0.5em;
}

/* ==========================================================================
   アクティビティログ
   ========================================================================== */

.activity-log {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
}

.activity-icon {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    padding-top: 6px;
    width: 10px;
}

.activity-icon::after {
    content: '';
    display: block;
    width: 2px;
    flex: 1;
    background-color: var(--border-color);
    margin-top: 4px;
}

.activity-item:last-child .activity-icon::after {
    display: none;
}

.activity-icon span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-sizing: content-box;
}

span.dot-primary {
    background-color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

span.dot-group-head {
    background-color: var(--white);
    border: 1.5px solid var(--primary-color);
}

span.dot-sub {
    width: 4px;
    height: 4px;
    background-color: var(--border-color);
    border: 3px solid var(--white);
}

.activity-content {
    flex: 1;
    min-width: 0;
    padding-bottom: 16px;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-action {
    font-size: 1.3rem;
}

.activity-meta {
    font-size: 1.2rem;
    color: var(--gray-color);
    white-space: nowrap;
}

.activity-staff-badge {
    display: inline-block;
    font-size: 80%;
    padding: 1px 8px;
    background-color: var(--primary-color-2);
    color: var(--text-color2);
    border-radius: 3px;
    margin-left: 4px;
}

.activity-details {
    margin-top: 4px;
    font-size: 1.2rem;
    color: var(--gray-color);
    line-height: 1.6;
}

/* ==========================================================================
   検索フォーム（絞り込み・キー検索）
   ========================================================================== */

.search-form {
    margin-bottom: 2.7em;
}
.search-form .tab-nav {
    display: flex;
    margin-left: 1em;
}

.search-form .tab-button {
    font-size: 120%;
    cursor: pointer;
    background-color: #cccccc;
    padding: 0.7em 2.7em 0.3em 2.7em;
    border-right: 1px solid #fff;
}

@media screen and (max-width: 1000px) {
    .search-form .tab-button {
        padding: 0.7em 0.7em;
    }
}

.search-form .tab-button:first-of-type {
    border-radius: 7px 0 0 0;
}

.search-form .tab-button:last-of-type {
    border-radius: 0 7px 0 0;
    border: none;
}

.search-form .tab-button:only-of-type {
    border-radius: 7px 7px 0 0;
}

.search-form .tab-button.active {
    background-color: var(--primary-color-3);
}

.search-form .tab-content {
    display: none;
}

.search-form .tab-container {
    border: 7px solid var(--primary-color-3);
    border-radius: 7px;
    padding: 1.7em;
}

@media screen and (max-width: 1000px) {
    .search-form .tab-container {
        padding: 1.3em;
        border-width: 3px;
    }
}

.search-form .title {
    font-size: 120%;
    margin-bottom: 0.7em;
}

.search-form .form-radio {
    margin-bottom: 1.3em;
}

.search-form .form-radio:last-of-type {
    margin-bottom: 0;
}

.search-form .form-radio ul {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3em;
}

.search-form .form-radio ul li {
    position: relative;
}

.search-form .form-radio ul li:first-of-type label {
    border-radius: 3px 0 0 3px;
}

.search-form .form-radio ul li:last-of-type label {
    border-radius: 0 3px 3px 0;
    border: none;
}

.search-form .form-radio input {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translate(0, -50%);
    width: 1.3em;
    height: 1.3em;
}

@media screen and (max-width: 1000px) {
    .search-form .form-radio input {
        display: none;
    }
}

.search-form .form-radio input[type=radio]:checked + label {
    background-color: var(--primary-color-hover);
    color: #fff;
}

.search-form .form-radio label {
    display: block;
    padding: 0.7em 3.7em;
    background-color: #f3f3f3;
    cursor: pointer;
}

@media screen and (max-width: 1000px) {
    .search-form .form-radio label {
        padding: 0.7em 0.7em;
    }
}

.search-form .form-input {
    position: relative;
    margin-bottom: 1.3em;
}

.search-form .form-input:last-of-type {
    margin-bottom: 0;
}

.search-form .form-input input[type=text] {
    width: 100%;
    padding: 0.7em 1.3em;
    border-radius: 3px;
    border: 1px solid #cccccc;
}

.search-form .form-placeholder {
    position: absolute;
    z-index: 0;
    left: 1em;
    top: 50%;
    color: #777;
    padding: 0 0.5em;
    transform: translate(0, -50%);
    transition: 0.2s;
    pointer-events: none;
}

.search-form .form-input input:focus ~ .form-placeholder,
.search-form .form-input input:not(:placeholder-shown) ~ .form-placeholder {
    top: 0;
    font-size: 80%;
    background-color: #fff;
}

.search-form .form-submit {
    display: flex;
    justify-content: center;
    padding-top: 1.3em;
}

.search-form .form-submit button {
    padding: 0.5em 3em;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.search-form .form-submit button:hover {
    background-color: var(--primary-color-hover);
}

/* ============================================================
   通知設定（自治体の通知先メール × 通知種別）
   利用: マネージャ基本設定(/manager/lg/{id}/setting)・自治体設定(/lg/settings)
   共通パーシャル: src/Shared/Views/partials/notification_settings.php
   ============================================================ */
.notify-section {
    margin-bottom: 28px;
}

.notify-section:last-of-type {
    margin-bottom: 0;
}

.notify-subhead {
    font-size: 1.35rem;
    font-weight: normal;
    margin: 0 0 14px;
    padding-bottom: 8px;
    color: var(--text-color);
}

.notify-subhead small {
    color: var(--gray-color);
    font-size: 72%;
}

.notify-email-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
    max-width: 560px;
}

.notify-email-row .form-control {
    flex: 1;
}

.notify-email-row .notify-remove {
    flex-shrink: 0;
}

.notify-add-row {
    margin-top: 4px;
}

#notify-add {
    white-space: nowrap;
}

.notify-matrix {
    width: 100%;
}

.notify-matrix th {
    text-align: center;
    vertical-align: middle;
}

.notify-matrix th:first-child {
    text-align: left;
}

.notify-matrix-cell {
    text-align: center;
    vertical-align: middle;
}

.notify-matrix-cell input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ============================================================
   設定画面（/lg/settings）: メール設定セクション・アコーディオン・メールプレビュー
   ============================================================ */
.settings-section {
    padding: 20px 0 0 20px;
    margin-bottom: 60px;
}

/* アコーディオンヘッダー */
.settings-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-left: 4px solid var(--primary-color);
    background-color: var(--background-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.settings-accordion-header:hover {
    background-color: var(--primary-color-3);
}

.settings-accordion-header h3 {
    font-size: 1.4rem;
    color: var(--text-color);
}

.accordion-icon {
    transition: transform 0.2s;
    flex-shrink: 0;
    color: var(--gray-color);
}

.accordion-closed .accordion-icon {
    transform: rotate(-90deg);
}

/* メールプレビュー */
.mail-preview-body {
    padding: 0;
}

.mail-preview-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin: 20px;
    overflow: hidden;
}

.mail-preview-header {
    background: var(--background-color);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mail-preview-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.mail-preview-row.mb-0 {
    margin-bottom: 0;
}

.mail-preview-label {
    color: var(--gray-color);
    width: 80px;
    flex-shrink: 0;
}

.mail-preview-input {
    background: var(--white);
}

.mail-preview-content {
    padding: 20px;
}

.mail-preview-textarea {
    font-family: inherit;
    line-height: 1.8;
}

.mail-preview-footer {
    padding: 0 20px 20px 20px;
}

/* ===== 自治体ダッシュボード（サマリー／お知らせ）。旧 dashboard.php のインライン<style>から移設 ===== */
.dashboard-summary {
    padding: 20px 0 0 20px;
    display: flex;
    gap: 20px;
}
.dashboard-summary .card {
    flex: 1;
}
.dashboard-summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.dashboard-summary-label {
    color: var(--gray-color);
    font-size: 1.6rem;
    margin-bottom: 4px;
}
.dashboard-summary-value {
    font-size: 4.8rem;
    color: var(--primary-color);
    line-height: 1;
}
.dashboard-notices {
    padding: 20px 0 0 20px;
}
.dashboard-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dashboard-notice-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
    align-items: baseline;
}
.dashboard-notice-list li:last-child {
    border-bottom: none;
}
.dashboard-notice-date {
    color: var(--gray-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    width: 120px;
}

/* ===== フォーム項目の条件UI（option=無効化／required=必須／visibility=表示）。
   旧 fields/edit.php のインライン背景色・枠線（HTML＋JS生成）から移設。type別に色分け。 ===== */
.condition-item--option     { background: #f8f9fa; padding: 12px; border-radius: 4px; border: 1px solid #dee2e6; }
.condition-item--required   { background: #f0f7ff; padding: 12px; border-radius: 4px; border: 1px solid #b8d4f0; }
.condition-item--visibility { background: #f0fff0; padding: 12px; border-radius: 4px; border: 1px solid #b8d4b8; }
.condition-box--option      { background: #fff3cd; padding: 16px; border-radius: 4px; border: 1px solid #ffc107; }
.condition-box--required    { background: #e8f4fd; padding: 16px; border-radius: 4px; border: 1px solid #b8d4f0; }
.condition-box--visibility  { background: #e8fde8; padding: 16px; border-radius: 4px; border: 1px solid #b8d4b8; }

/* ===== 委託契約一覧の状態フィルター（すべて／設定済／未設定）。アクティブ=塗り・非アクティブ=アウトライン ===== */
.bank-contract-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.bank-contract-filter .btn {
    border: 1px solid var(--primary-color);
    background-color: var(--white);
    color: var(--primary-color);
}
.bank-contract-filter .btn:hover {
    background-color: var(--background-color, #eef2f9);
    color: var(--primary-color);
}
.bank-contract-filter .btn.is-active,
.bank-contract-filter .btn.is-active:hover {
    background-color: var(--primary-color);
    color: var(--white);
}
.is-hidden {
    display: none !important;
}

/* 委託契約一覧の縞（zebra）。フィルターで行を隠すと nth-of-type が崩れるため、
   .bank-contracts 内では既定の縞を無効化し、JS が可視行に付ける .row-alt で振り直す（hover は維持）。 */
.bank-contracts .table-datalist table tr:nth-of-type(2n) {
    background-color: transparent;
}
.bank-contracts .table-datalist table tbody tr.row-alt {
    background-color: var(--table-row-even);
}
.bank-contracts .table-datalist table tbody tr:hover {
    background-color: var(--table-row-hover);
}