/* ===========================================
   BSK 管理画面専用スタイル (ADM-001-1)
   =========================================== */

/* ================================================
   管理メニューカード
   ================================================ */
.admin-menu-card {
    display: block;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 200px;
}

.admin-menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
    color: inherit;
}

/* カードアイコン */
.admin-menu-card .card-icon {
    margin-bottom: 20px;
}

.admin-menu-card .card-icon i {
    font-size: 3rem;
    color: #3498db;
}

/* カードタイトル */
.admin-menu-card .card-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--bsk-dark);
    margin-bottom: 15px;
}

/* カード説明 */
.admin-menu-card .card-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ================================================
   レスポンシブ対応
   ================================================ */

/* タブレット（768px〜1199px）: 2列 */
@media (min-width: 768px) and (max-width: 1199px) {
    .admin-menu-card {
        min-height: 180px;
    }
}

/* モバイル（767px以下）: 1列 */
@media (max-width: 767px) {
    .admin-page-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .admin-menu-card {
        min-height: 160px;
        padding: 25px 15px;
    }

    .admin-menu-card .card-icon i {
        font-size: 2.5rem;
    }

    .admin-menu-card .card-title {
        font-size: 16px;
    }

    .admin-menu-card .card-description {
        font-size: 13px;
    }
}

/* ================================================
   ADM-004-1: メール送信画面専用スタイル（モック準拠）
   ================================================ */

/* 送信先選択セクション */
.recipient-selector {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 900px;
}

/* メール内容入力セクション */
.mail-form-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 900px;
}

/* 送信先追加ボタングループ */
.add-recipient-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* 送信先件数表示 */
.recipient-count {
    font-weight: bold;
    color: #0066cc;
    margin-top: 10px;
}

/* 送信先選択エリア最小高さ */
.min-vh-100px {
    min-height: 100px;
}

/* カスタムバッジカラー（紫） */
.bg-purple {
    background-color: #9b59b6 !important;
    color: #fff;
}

/* カスタムバッジカラー（オレンジ） */
.bg-orange {
    background-color: #e67e22 !important;
    color: #fff;
}

/* バッジ内の閉じるボタン */
.badge .btn-close {
    font-size: 0.6rem;
    padding: 0;
    opacity: 0.8;
}

.badge .btn-close:hover {
    opacity: 1;
}

/* ================================================
   ADM-002-1: ステータスバッジ（設計書準拠）
   ================================================ */

/* 申請中: 黄色背景 */
.status-pending {
    background-color: #fff3cd !important;
    color: #856404 !important;
}

/* 承認済み: 緑背景 */
.status-reviewed {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
}

/* 却下: 赤背景 */
.status-rejected {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

/* 不明: グレー背景 */
.status-unknown {
    background-color: #e2e3e5 !important;
    color: #383d41 !important;
}

/* ================================================
   ADM-002-2: 申請詳細セクションスタイル（モック準拠）
   ================================================ */

/* 詳細セクション */
.detail-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* セクションタイトル */
.section-title {
    color: #0066cc;
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 情報行 */
.info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

/* ラベル */
.info-label {
    width: 200px;
    font-weight: bold;
    color: #555;
    flex-shrink: 0;
}

/* 値 */
.info-value {
    flex: 1;
    color: #333;
}

/* アカウントテーブル */
.accounts-table {
    width: 100%;
    margin-top: 10px;
}

.accounts-table th {
    background-color: #f8f9fa;
    padding: 10px;
    border: 1px solid #dee2e6;
    font-weight: bold;
    color: #333;
}

.accounts-table td {
    padding: 10px;
    border: 1px solid #dee2e6;
}

/* レスポンシブ対応: タブレット以下で縦並び */
@media (max-width: 1199px) {
    .info-row {
        flex-direction: column;
    }

    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* ================================================
   ADM-005-1: 決済管理画面（モック準拠）
   ================================================ */

/* 決済管理画面 - テーブルヘッダー */
.payment-table th {
    background-color: #0066cc !important;
    color: white !important;
}

/* ステータスバッジ */
.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-paid {
    background-color: #d4edda;
    color: #155724;
}

.status-unpaid {
    background-color: #f8d7da;
    color: #721c24;
}

/* ================================================
   ADM-006-1: 契約実績インポート画面（モック準拠）
   ================================================ */

/* ファイルアップロードセクション */
.upload-section {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
}

/* 取り込みデータ一覧セクション */
.import-list-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.import-list-section .table th {
    background-color: #f8f9fa;
    padding: 12px;
    border: 1px solid #dee2e6;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.import-list-section .table td {
    padding: 12px;
    border: 1px solid #dee2e6;
    font-size: 14px;
}

/* 契約金額表示 */
.amount-display {
    font-weight: bold;
    color: #e65100;
}

/* 契約方式バッジ */
.contract-type {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
}

.type-general {
    background-color: #e3f2fd;
    color: #0066cc;
}

.type-limited {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.type-negotiated {
    background-color: #e8f5e8;
    color: #2e7d32;
}

/* バリデーション結果セクション */
.validation-result {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 結果サマリー（横一列） */
.result-summary-line {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    gap: 15px;
    flex-wrap: wrap;
}

.result-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.result-separator {
    color: #dee2e6;
    font-size: 1.2rem;
}

/* エラーテーブル */
.error-table {
    width: 100%;
    font-size: 0.9rem;
}

.error-table th {
    background-color: #f8f9fa;
}

/* 登録完了メッセージ */
.success-message {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    text-align: center;
}

/* データ確認モーダルテーブル */
.data-table {
    width: 100%;
    font-size: 0.85rem;
}

.data-table th {
    background-color: #f8f9fa;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.data-table td {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ================================================
   ADM-007-2: 公告情報管理画面（モック準拠）
   ================================================ */

/* フィルターパネル */
.filter-panel {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 検索結果セクション */
.results-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 検索結果ヘッダー */
.results-header {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #e0e0e0;
}

/* 公告情報テーブル */
.announcement-table {
    width: 100%;
}

.announcement-table th {
    background-color: #f8f9fa;
    padding: 12px;
    border: 1px solid #dee2e6;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.announcement-table td {
    padding: 12px;
    border: 1px solid #dee2e6;
    font-size: 14px;
}

.announcement-table th:first-child,
.announcement-table td:first-child {
    width: 40px;
    text-align: center;
}

/* 日付範囲入力 */
.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ページネーションコンテナ */
.pagination-container {
    background: white;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    border-top: 1px solid #e0e0e0;
}

/* 入札期限切れ行 */
.expired-row {
    background-color: #fff3cd !important;
}

/* 外部リンクアイコン */
.external-link {
    color: #0066cc;
    font-size: 18px;
    transition: all 0.3s ease;
}

.external-link:hover {
    color: #0052a3;
}

/* ================================================
   ADM-008-1: 関連サイト巡回管理（モック準拠）
   ================================================ */

/* リストセクション */
.list-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 操作アイコン */
.action-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.action-icons i {
    cursor: pointer;
    font-size: 1.2rem;
}

.action-icons i.bi-pencil-square {
    color: #0066cc;
}

.action-icons i.bi-pencil-square:hover {
    color: #0052a3;
}

.action-icons i.bi-trash {
    color: #dc3545;
}

.action-icons i.bi-trash:hover {
    color: #a71d2a;
}

/* 巡回管理テーブル - サイト名・URL列の最大幅 */
.data-table td.td-site-name {
    max-width: 250px;
}

.data-table td.td-url {
    max-width: 150px;
}

/* サイト名 + Newバッジ Flexboxラッパー */
.site-name-wrapper {
    display: flex;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

.site-name-wrapper .site-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.site-name-wrapper .badge {
    flex-shrink: 0;
}

/* ================================================
   ADM-010-1: 募集案件管理画面（モック準拠）
   ================================================ */

/* 案件一覧コンテナ */
.project-list {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 案件ヘッダー */
.project-header {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #e0e0e0;
}

/* 案件カード */
.project-card {
    border-bottom: 1px solid #e0e0e0;
    padding: 25px;
    position: relative;
}

.project-card:last-child {
    border-bottom: none;
}

/* 案件タイトル */
.project-title {
    color: #0066cc;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

/* 案件メタ情報 */
.project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

/* 業種等 */
.project-business-type {
    color: #2e7d32;
    font-size: 14px;
}

/* 予算 */
.project-budget {
    color: #e65100;
    font-weight: bold;
}

/* 期間 */
.project-period {
    color: #2e7d32;
}

/* 締切日 */
.project-deadline {
    color: #d32f2f;
}

/* 案件概要・要件セクション */
.project-description {
    margin: 15px 0;
    line-height: 1.6;
}

.project-requirements {
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #0066cc;
}

.project-requirements-label {
    font-weight: bold;
    font-size: 13px;
    color: #0066cc;
    margin-bottom: 5px;
}

.project-requirements-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* 案件アクションボタン */
.project-actions {
    margin-top: 15px;
}

/* ステータスバッジ */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.status-open {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.status-negotiating {
    background-color: #d4edda;
    color: #155724;
}

.status-completed {
    background-color: #e2e3e5;
    color: #383d41;
}

.status-closed {
    background-color: #ffcdd2;
    color: #c62828;
}

/* ================================================
   ページタイトルセクション
   ================================================ */

/* ページタイトルセクション */
.page-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

.page-title-section .page-title {
    color: #333;
    font-size: 24px;
    margin: 0;
}
