/* Secoor管理システム - カスタムCSS */

/* ベーススタイル */
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* ヘッダー */
.navbar-brand {
    font-weight: bold;
    color: #0d6efd !important;
}

/* メインコンテンツ */
.main-content {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* カード */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* テーブル */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    background-color: #f8f9fa;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

/* 操作カラムの幅固定 */
.table th:last-child,
.table td:last-child {
    width: 140px;
    min-width: 140px;
}

/* ボタン */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

/* アクションボタングループ */
.action-buttons {
    white-space: nowrap;
}

.action-buttons .btn {
    margin-right: 0.25rem;
}

.action-buttons .btn:last-child {
    margin-right: 0;
}

/* フォーム */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 必須フィールド */
.required {
    color: #dc3545;
}

/* 検索フォーム */
.search-form {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* ステータスバッジ */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* ページネーション */
.pagination {
    margin-bottom: 0;
}

.page-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    border: 1px solid #dee2e6;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* アラート */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-dismissible .btn-close {
    padding: 1.25rem 1rem;
}

/* レスポンシブテーブル */
.table-responsive {
    border-radius: 0.5rem;
}

@media (max-width: 768px) {
    .table-responsive table {
        font-size: 0.875rem;
    }

    .action-buttons .btn {
        padding: 0.125rem 0.5rem;
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .search-form {
        padding: 1rem;
    }
}

/* ダッシュボード用カード */
.dashboard-card {
    transition: transform 0.2s ease-in-out;
}

.dashboard-card:hover {
    transform: translateY(-2px);
}

.dashboard-card .card-body {
    padding: 2rem;
    text-align: center;
}

.dashboard-card .display-4 {
    font-weight: bold;
    color: #0d6efd;
}

/* モーダル */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1.5rem;
}

/* 読み込み中スピナー */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 2rem;
}

.loading-spinner.show {
    display: block;
}

/* エラー表示 */
.field-error {
    border-color: #dc3545 !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ユーティリティクラス */
.text-nowrap {
    white-space: nowrap;
}

.cursor-pointer {
    cursor: pointer;
}

.border-dashed {
    border-style: dashed !important;
}

/* フッター */
footer {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.875rem;
}

/* プリント用スタイル */
@media print {
    .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .table {
        font-size: 0.75rem;
    }

    body {
        background-color: #fff;
    }
}