/* フロントエンド追加スタイル - 最小限に抑制 */

/* ダッシュボード統計 */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}


.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    font-weight: normal;
}

.stat-card span {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stat-card-warning {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
}

.stat-card-warning h3 {
    color: #dc2626;
}

.stat-card-warning span {
    color: #dc2626;
}

/* 重要度別統計カードスタイル */
.stat-card-priority-high {
    background: #fee2e2;
    border-left: 4px solid #dc2626;
}

.stat-card-priority-high h3 {
    color: #dc2626;
}

.stat-card-priority-high span {
    color: #dc2626;
}

.stat-card-priority-medium {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.stat-card-priority-medium h3 {
    color: #f59e0b;
}

.stat-card-priority-medium span {
    color: #f59e0b;
}

.stat-card-priority-low {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
}

.stat-card-priority-low h3 {
    color: #10b981;
}

.stat-card-priority-low span {
    color: #10b981;
}

/* 期限切れセクション */
.overdue-section {
    margin-top: 30px;
}

.section-subtitle {
    font-size: 18px;
    color: #dc2626;
    margin-bottom: 15px;
    font-weight: 600;
}

.overdue-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: scroll;
}

.overdue-table {
    width: 100%;
    margin: 0;
}

.overdue-table th {
    background: #fef2f2;
    color: #dc2626;
    font-weight: 600;
}

.deadline-overdue {
    color: #dc2626;
    font-weight: 600;
}

.delay-days {
    text-align: center;
}

.delay-badge {
    background: #dc2626;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* 1週間以内期限セクション */
.upcoming-section {
    margin-top: 30px;
}

.upcoming-section .section-subtitle {
    color: #f59e0b;
}

.upcoming-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.upcoming-table {
    width: 100%;
    margin: 0;
}

.upcoming-table th {
    background: #fffbeb;
    color: #f59e0b;
    font-weight: 600;
}

.deadline-upcoming {
    color: #f59e0b;
    font-weight: 600;
}

.remaining-days {
    text-align: center;
}

.remaining-badge {
    background: #f59e0b;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* 進行中タスクセクション */
.active-section {
    margin-top: 30px;
}

.active-section .section-subtitle {
    color: #007bff;
}

.active-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.active-table {
    width: 100%;
    margin: 0;
}

.active-table th {
    background: #e7f3ff;
    color: #007bff;
    font-weight: 600;
}

.deadline-active {
    color: #007bff;
    font-weight: 600;
}

.progress-days {
    text-align: center;
}

.progress-badge {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* トグルボタンスタイル */
.table-toggle-controls {
    padding: 15px 20px;
    text-align: center;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 5px 5px;
}

.btn-toggle {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-toggle i {
    font-size: 12px;
}

/* 期限切れタスク用トグルボタン */
.btn-toggle-overdue {
    background: #dc2626;
    color: white;
}

.btn-toggle-overdue:hover {
    background: #b91c1c;
}

/* 進行中タスク用トグルボタン */
.btn-toggle-active {
    background: #007bff;
    color: white;
}

.btn-toggle-active:hover {
    background: #0056b3;
}

/* 1週間以内期限タスク用トグルボタン */
.btn-toggle-upcoming {
    background: #f59e0b;
    color: white;
}

.btn-toggle-upcoming:hover {
    background: #d97706;
}

/* 担当者カラムスタイル */
.assignee-column {
    min-width: 100px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #4f46e5;
    font-weight: 500;
}

/* レスポンシブ対応 - 992px以下で統一 */

.assignee-column {
/*    display: none;*/
    /* モバイルでは非表示 */
}

/* グラフセクション */
.chart-section {
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 400px;
    position: relative;
}

.chart-container canvas {
    max-height: 350px;
}

/* コンテンツセクション */
.content-section {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* API専用テーブル */
.api-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.api-table th,
.api-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.api-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.api-table tr:hover {
    background: #f8f9fa;
}

/* ヘッダープロジェクトセレクター */
.header ul li.project-selector {
    display: flex;
    align-items: center;
    padding-left: 15px;
}

.header ul li.project-selector select {
    min-width: 120px;
    max-width: 200px;
    width: auto;
    font-size: 12px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: white;
    color: #333;
    height: 28px;
    margin-bottom: 0;
}

.header ul li.project-selector select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.1);
}

/* ソート機能スタイル */
.sort-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.sort-header:hover {
    color: #007bff;
}

.sort-icon {
    font-size: 12px;
    color: #aaa;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.sort-header:hover .sort-icon {
    color: #007bff;
}

.sort-header.sort-asc .sort-icon {
    color: #007bff;
}

.sort-header.sort-desc .sort-icon {
    color: #007bff;
}

.sort-header.sort-asc .sort-icon::before {
    content: "\f0de";
    /* fa-sort-up */
}

.sort-header.sort-desc .sort-icon::before {
    content: "\f0dd";
    /* fa-sort-down */
}

/* 期限超過タスクスタイル */
.deadline-overdue {
    color: #dc3545;
    font-weight: bold;
}

/* 削除ボタンスタイル */
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
    transform: translateY(-1px);
}

/* フィルター用セレクトボックス */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filters .form-control {
    font-size: 15px;
    width: unset;
}

/* 状態フィルター（複数選択）のスタイル */
.status-filter-select {
    height: 44px;
    width: 140px;
    transition: height 0.3s ease;
    overflow: hidden;
    resize: none;
}

.status-filter-select:focus,
.status-filter-select:active {
    height: auto;
    size: 4;
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.status-filter-select option {
    padding: 4px 8px;
    font-size: 14px;
}

.status-filter-select option:checked {
    background-color: #007bff;
    color: white;
}

/* 小さなボタン */
.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    margin: 0 2px;
}

/* カンバンボードスタイル */
#kanban-board {
    display: flex;
    gap: 20px;
    padding: 0;
    overflow-x: auto;
}

.kanban-column {
    flex: 1;
    min-width: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.kanban-header {
    margin: 0 0 15px 0;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: white;
}

.kanban-tasks {
    min-height: 400px;
}

.kanban-task {
    background: white;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: move;
}

.kanban-task h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: bold;
}

.kanban-task p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* ドラッグ&ドロップスタイル */
.kanban-task[draggable="true"] {
    cursor: move;
    user-select: none;
}

.kanban-task.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
    z-index: 1000;
}

.kanban-tasks.drag-over {
    background-color: #e3f2fd;
    border: 2px dashed #2196f3;
    border-radius: 8px;
}

.kanban-task:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

/* ガントチャートスタイル */
.gantt-container {
    background: white;
    border-radius: 8px;
    padding: 0;
    position: relative;
    height: calc(100vh - 240px);
    border: 1px solid #eee;
    overflow: hidden;
}

#gantt-chart {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#gantt-tasks {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ガントチャートヘッダー（固定） */
.gantt-header {
    display: flex;
    border-bottom: 2px solid #333;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.gantt-task-column {
    min-width: 250px;
    width: 250px;
    max-width: 250px;
    padding: 10px;
    font-weight: bold;
    border-right: 1px solid #ddd;
    background: #f8f9fa;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gantt-arrow-left,
.gantt-arrow-right {
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.gantt-arrow-left:hover,
.gantt-arrow-right:hover {
    color: #495057;
    background-color: #e9ecef;
    transform: scale(1.1);
}

.gantt-arrow-left.disabled,
.gantt-arrow-right.disabled {
    color: #ced4da !important;
    cursor: not-allowed !important;
    opacity: 0.3 !important;
}

.gantt-arrow-left.disabled:hover,
.gantt-arrow-right.disabled:hover {
    background-color: transparent !important;
    transform: none !important;
}

.gantt-no-tasks {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.gantt-timeline {
    display: flex;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: thin;
}

.gantt-timeline::-webkit-scrollbar {
    height: 8px;
}

.gantt-timeline::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.gantt-timeline::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.gantt-date {
    text-align: center;
    padding: 10px 0;
    border-right: 1px solid #eee;
    font-size: 12px;
    min-width: 30px;
    width: 30px;
    flex-shrink: 0;
    background: #f8f9fa;
}

.gantt-date.weekend {
    background-color: #e9ecef;
}

/* ガントチャートボディ */
.gantt-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
}

.gantt-task-row {
    display: flex;
    border-bottom: 1px solid #eee;
    min-height: 50px;
    position: relative;
}

.gantt-task-info {
    min-width: 250px;
    width: 250px;
    max-width: 250px;
    padding: 10px;
    border-right: 1px solid #ddd;
    background: white;
    flex-shrink: 0;
    position: sticky;
    left: 0;
    z-index: 5;
}

.gantt-task-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.gantt-task-meta {
    font-size: 12px;
}

.gantt-task-meta span {
    margin-right: 10px;
}

.gantt-timeline-row {
    position: relative;
    flex: 1;
    min-height: 50px;
    background-image: repeating-linear-gradient(to right,
        transparent,
        transparent 29px,
        #eee 29px,
        #eee 30px);
}

/* ガントチャートバー */
.gantt-task-bar {
    position: absolute;
    height: 30px;
    top: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.gantt-task-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gantt-bar-text {
    color: white;
    font-size: 11px;
    font-weight: bold;
}

/* レスポンシブ対応 */

.gantt-container {
    height: 500px;
}

.gantt-task-column,
.gantt-task-info {
    min-width: 200px;
    width: 200px;
    max-width: 200px;
}

.gantt-date {
    min-width: 25px;
    width: 25px;
}

/* =============================================
   モーダルスタイル - 状態変更機能
============================================= */

/* モーダル背景 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

/* モーダルが表示されるときのアニメーション */
.modal.show {
    display: block;
}

/* モーダルコンテンツ */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* モーダルヘッダー */
.modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

/* モーダル閉じるボタン */
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #adb5bd;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #6c757d;
    background-color: #f8f9fa;
}

/* モーダルボディ */
.modal-body {
    padding: 24px;
}

.modal-body p {
    margin: 0 0 20px 0;
    color: #495057;
    font-size: 14px;
}

.modal-body .task-title {
    font-weight: 600;
    color: #2c3e50;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

/* フォームグループ */
.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.form-group select.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    color: #495057;
    background-color: white;
    transition: all 0.2s ease;
}

.form-group select.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* モーダルフッター */
.modal-footer {
    padding: 16px 24px 24px 24px;
    border-top: 1px solid #e9ecef;
    text-align: right;
    background-color: #f8f9fa;
}

.modal-footer .btn {
    margin-left: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-footer .btn:first-child {
    margin-left: 0;
}

.modal-footer .btn-c4 {
    background-color: #6c757d;
    color: white;
}

.modal-footer .btn-c4:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.modal-footer .btn-c1 {
    background-color: #007bff;
    color: white;
}

.modal-footer .btn-c1:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 状態変更アイコンボタン */
.btn-status-change {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-status-change:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: white;
    transform: translateY(-1px);
}

/* レスポンシブ対応 */

.modal-content {
    margin: 5% auto;
    width: 95%;
    max-width: none;
}

.modal-header,
.modal-body,
.modal-footer {
    padding-left: 16px;
    padding-right: 16px;
}

.modal-footer {
    text-align: center;
}

.modal-footer .btn {
    width: 48%;
    margin: 0 1%;
}

/* =============================================
   ページネーション関連スタイル
============================================= */

/* タスク制御バー */
.task-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    gap: 20px;
}

.task-controls-left {
    display: flex;
    align-items: center;
}

.task-controls-left .btn {
    margin-top: 0;
}

.task-controls-right {
    display: flex;
    align-items: center;
}

/* ページネーション情報 */
.pagination-info {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    flex: 1;
    justify-content: flex-start;
}

.pagination-info span {
    font-weight: 500;
}

/* ページネーションコンテナ */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
    position: relative;
}

/* ページネーション制御 */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.pagination-controls .btn {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-controls .btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-1px);
}

.pagination-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #999;
}

.pagination-controls .btn i {
    font-size: 12px;
}

/* ページ情報表示 */
.page-info {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    min-width: 80px;
    text-align: center;
    padding: 0 10px;
}

/* 表示件数セレクト用調整 */
#items-per-page {
    min-width: 80px;
    font-size: 14px;
}

/* アラートメッセージスタイル */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert i {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.alert strong {
    display: block;
    margin-bottom: 5px;
}

/* レスポンシブ対応 */

.task-controls-bar {
    gap: 15px;
    padding: 15px 0;
}

.task-controls-bar .pagination-info{
    margin-bottom: 0;
}

.task-controls-left,
.task-controls-right {
    justify-content: center;
}

.pagination-info {
    justify-content: center;
    margin-bottom: 10px;
}

.pagination-container {
    padding: 15px 0;
}

.pagination-controls .btn {
    width: 120px;
    justify-content: center;
}

.page-info {
    order: -1;
    margin-bottom: 5px;
}

/* 優先度別統計カード（動的背景色により廃止） */

/* まとめて削除機能関連スタイル */
.task-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #007bff;
}

#select-all-tasks {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #007bff;
}

#bulk-delete-btn {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    transition: all 0.2s ease;
}

#bulk-delete-btn:hover:not(:disabled) {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

#bulk-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #6c757d;
    border-color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* チェックボックス列の調整 */
.api-table th:first-child,
.api-table td:first-child {
    text-align: center;
    vertical-align: middle;
    padding: 8px;
}

/* チェックボックス行のホバー効果 */
.api-table tbody tr:hover .task-checkbox {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* 選択された行のスタイル */
.api-table tbody tr:has(.task-checkbox:checked) {
    background-color: rgba(0, 123, 255, 0.05);
    border-left: 3px solid #007bff;
}

.api-table tbody tr:has(.task-checkbox:checked):hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* ガントチャート推定タスク用スタイル */
.gantt-task-bar.estimated {
    border-style: dashed !important;
    opacity: 0.7;
    position: relative;
}

.gantt-task-bar.estimated::after {
    content: '推定';
    position: absolute;
    right: 2px;
    top: 2px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.3);
    padding: 1px 3px;
    border-radius: 2px;
}

/* ガントチャート保留状態のスタイル */
.gantt-task-bar.status-hold {
    background: repeating-linear-gradient(45deg,
        #ffa500,
        #ffa500 10px,
        #ff8c00 10px,
        #ff8c00 20px);
}

/* ガントチャートタスクメタ情報のスタイル改善 */
.gantt-task-meta span {
    display: inline-block;
    margin-right: 8px;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 3px;
}

.gantt-task-meta .status {
    background-color: #e9ecef;
    color: #495057;
}

.gantt-task-meta .priority {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* =============================================
   インライン編集モーダルスタイル
============================================= */

/* インライン編集モーダル背景 */
.inline-edit-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

/* インライン編集モーダルが表示されるときのアニメーション */
.inline-edit-modal.show {
    display: block;
}

/* インライン編集モーダルコンテンツ */
.inline-edit-modal .modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    overflow: hidden;
}

/* インライン編集モーダルヘッダー */
.inline-edit-modal .modal-header {
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.inline-edit-modal .modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

/* インライン編集モーダル閉じるボタン */
.inline-edit-modal .modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #adb5bd;
    cursor: pointer;
    padding: 4px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.inline-edit-modal .modal-close:hover {
    color: #6c757d;
    background-color: #f8f9fa;
}

/* インライン編集モーダルボディ */
.inline-edit-modal .modal-body {
    padding: 20px 24px;
}

.inline-edit-modal .modal-body .form-group {
    margin-bottom: 16px;
}

.inline-edit-modal .modal-body .form-group:last-child {
    margin-bottom: 0;
}

.inline-edit-modal .modal-body label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 13px;
}

.inline-edit-modal .modal-body .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    color: #495057;
    background-color: white;
    transition: all 0.2s ease;
}

.inline-edit-modal .modal-body .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* フォームアクション */
.inline-edit-modal .form-actions {
    margin-top: 12px;
}

/* インライン編集モーダルフッター */
.inline-edit-modal .modal-footer {
    padding: 16px 24px 20px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: #f8f9fa;
}

.inline-edit-modal .modal-footer .btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.inline-edit-modal .modal-footer .btn-outline {
    background-color: white;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.inline-edit-modal .modal-footer .btn-outline:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.inline-edit-modal .modal-footer .btn-c1 {
    background-color: #007bff;
    color: white;
}

.inline-edit-modal .modal-footer .btn-c1:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 編集可能セルのスタイル */
.editable-cell {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.editable-cell:hover {
    background-color: rgba(0, 123, 255, 0.05);
    /*border-left: 3px solid #007bff;*/
}

.editable-cell:hover::after {
    content: '編集';
    position: absolute;
    top: 2px;
    right: 2px;
    background: #007bff;
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 500;
    opacity: 0.8;
    pointer-events: none;
}

/* =============================================
   動作ログページ専用スタイル（PC版）
============================================= */

/* ログページ統計バー */
.stats-bar {
    display: flex;
    gap: 30px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* デスクトップ/モバイル表示切替 */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-weight: 500;
    color: #6c757d;
}

.stat-value {
    font-weight: bold;
    color: #212529;
}

.log-datetime {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #6c757d;
}

.log-username {
    font-weight: 500;
}

.log-action {
    font-weight: 500;
}

.log-target {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #495057;
}

.log-description {
    font-size: 0.9em;
    max-width: 300px;
    word-wrap: break-word;
}

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-primary {
    color: #007bff !important;
}

.text-secondary {
    color: #6c757d !important;
}

.text-muted {
    color: #6c757d !important;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #6c757d;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 追加のユーティリティクラス */
.mr8 {
    margin-right: 8px;
}

/* 強制的なモバイル対応（JavaScriptと連動） */
body.mobile-view .desktop-only {
    display: none !important;
}

body.mobile-view .mobile-only {
    display: block !important;
}

body.desktop-view .desktop-only {
    display: block !important;
}

body.desktop-view .mobile-only {
    display: none !important;
}

/* =============================================
   表示設定ページ専用スタイル（PC版）
============================================= */

/* 表示設定ページ専用スタイル */
.settings-current {
    margin-bottom: 30px;
}

.current-theme-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.current-theme-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.current-theme-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
}

.theme-indicator {
    display: flex;
    align-items: center;
    gap: 20px;
}

#current-theme-name {
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
}

.section-subtitle {
    color: #495057;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.theme-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.theme-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.theme-card.active {
    border-color: #007bff;
    background: #f8f9ff;
}

.theme-preview {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
}

.light-preview {
    background: #ffffff;
}

.dark-preview {
    background: #1a1a1a;
}

.preview-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.light-preview .preview-bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.dark-preview .preview-bg {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.preview-content {
    position: relative;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.preview-header {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.light-preview .preview-header {
    color: #495057;
}

.dark-preview .preview-header {
    color: #e0e0e0;
}

.preview-text {
    font-size: 12px;
    margin-bottom: 8px;
}

.light-preview .preview-text {
    color: #6c757d;
}

.dark-preview .preview-text {
    color: #cccccc;
}

.preview-button {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-align: center;
    align-self: flex-start;
}

.theme-name {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.theme-description {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.4;
}

.theme-actions {
    text-align: center;
}

.theme-select-btn {
    padding: 8px 20px;
    font-size: 14px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #17a2b8;
}

.info-header {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
}

.info-content ul {
    margin: 0;
    padding-left: 20px;
}

.info-content li {
    margin-bottom: 8px;
    color: #6c757d;
    line-height: 1.5;
}

/* =============================================
   アプリ連携関連スタイル
============================================= */

/* 連携状況サマリー */
.integration-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid transparent;
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.summary-icon.success {
    background: #d4edda;
    color: #155724;
}

.summary-icon.warning {
    background: #fff3cd;
    color: #856404;
}

.summary-icon.info {
    background: #d1ecf1;
    color: #0c5460;
}

.summary-content {
    flex: 1;
}

.summary-number {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* 連携アプリ一覧 */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.integration-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.integration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.integration-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.integration-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #f8f9fa;
    flex-shrink: 0;
}

.integration-info {
    flex: 1;
    min-width: 0;
}

.integration-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.integration-description {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

.integration-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.enabled {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.disabled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-badge.error {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.integration-features {
    margin-bottom: 20px;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-item {
    background: #f8f9fa;
    color: #495057;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.integration-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.integration-actions .btn {
    flex: 1;
    min-width: 0;
}

/* 最近の連携ログ */
.recent-logs-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logs-container {
    max-height: 400px;
    overflow-y: auto;
}

.log-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.log-item:last-child {
    border-bottom: none;
}

.log-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.log-icon.success {
    background: #d4edda;
    color: #155724;
}

.log-icon.error {
    background: #f8d7da;
    color: #721c24;
}

.log-icon.warning {
    background: #fff3cd;
    color: #856404;
}

.log-content {
    flex: 1;
    min-width: 0;
}

.log-message {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 4px;
}

.log-details {
    font-size: 12px;
    color: #6c757d;
}

.log-time {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    flex-shrink: 0;
}

.no-logs {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 14px;
}

.integration-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.integration-status {
    align-self: flex-start;
}

.feature-list {
    flex-direction: column;
    gap: 5px;
}

.integration-actions {
    flex-direction: column;
}

.log-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.log-time {
    align-self: flex-end;
}

/* レスポンシブ対応 */

.inline-edit-modal .modal-content {
    margin: 5% auto;
    width: 95%;
    max-width: none;
}

.inline-edit-modal .modal-header,
.inline-edit-modal .modal-body,
.inline-edit-modal .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
}

.inline-edit-modal .modal-footer {
    flex-direction: column;
    gap: 8px;
}

.inline-edit-modal .modal-footer .btn {
    width: 100%;
}

/* LINE WORKS連携固有スタイル */
.time-range-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-separator {
    font-weight: bold;
    color: #666;
}

.validation-help {
    margin-top: 5px;
    font-size: 12px;
    color: #dc2626;
    display: flex;
    align-items: center;
}

.form-control.error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.guide-note {
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    border-radius: 6px;
}

.guide-note h4 {
    color: #1e40af;
    margin: 0 0 10px 0;
}

.guide-note ul {
    margin: 0;
    padding-left: 20px;
}

.guide-note li {
    margin-bottom: 8px;
    color: #374151;
}

/* Googleカレンダー連携固有スタイル */
.oauth-status-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.oauth-status-card.authenticated {
    background: #f0fdf4;
    border-color: #22c55e;
}

.oauth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.oauth-icon {
    width: 50px;
    height: 50px;
    background: #4285F4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.oauth-status-card.authenticated .oauth-icon {
    background: #22c55e;
}

.oauth-info {
    flex: 1;
}

.oauth-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.oauth-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.sync-log-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.sync-log-container {
    max-height: 400px;
    overflow-y: auto;
}

.sync-log-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.sync-log-item:last-child {
    border-bottom: none;
}

.sync-log-item .log-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.sync-log-item.success .log-icon {
    background: #22c55e;
}

.sync-log-item.error .log-icon {
    background: #dc2626;
}

.sync-log-item.warning .log-icon {
    background: #f59e0b;
}

.sync-log-item .log-content {
    flex: 1;
}

.sync-log-item .log-message {
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.sync-log-item .log-details {
    font-size: 12px;
    color: #6b7280;
}

.sync-log-item .log-time {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

.integration-form .radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.integration-form .radio-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
    margin: 0;
}

.integration-form .radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    background: white;
    flex-shrink: 0;
}

.integration-form .radio-item input[type="radio"] {
    display: none !important;
}

.integration-form .radio-item input[type="radio"]:checked+.radio-mark {
    border-color: #3b82f6;
    background: #3b82f6 !important;
}

.integration-form .radio-item input[type="radio"]:checked+.radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.radio-label {
    font-size: 14px;
    color: #374151;
}

/* アプリ連携詳細ページ共通スタイル */
.integration-status-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.status-icon.success {
    background: #22c55e;
}

.status-icon.error {
    background: #dc2626;
}

.status-icon.warning {
    background: #f59e0b;
}

.status-info {
    flex: 1;
}

.status-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.status-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.integration-form-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 30px;
}

.integration-form {
    padding: 0;
}

.form-section {
    border-bottom: 1px solid #f3f4f6;
    padding: 25px;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-title i {
    color: #6b7280;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


.form-row {
    grid-template-columns: 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 0px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.required {
    color: #dc2626;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    height: 42px;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control[readonly] {
    background-color: #f9fafb;
    color: #6b7280;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.form-help {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.form-help i {
    margin-top: 2px;
    flex-shrink: 0;
}

.integration-form .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.integration-form .checkbox-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
    margin: 0;
}

.integration-form .checkbox-item input[type="checkbox"] {
    display: none !important;
}

.integration-form .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: white;
}

.integration-form .checkbox-item input[type="checkbox"]:checked+.checkmark {
    background: #3b82f6 !important;
    border-color: #3b82f6;
}

.integration-form .checkbox-item input[type="checkbox"]:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    font-size: 14px;
    color: #374151;
}

.notification-events {
    margin: 0;
}

.sync-options {
    margin: 0;
}

.form-actions {
    padding: 20px 25px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


.form-actions {
    flex-direction: column;
}

.form-actions .btn {
    width: 100%;
}

.integration-guide {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.guide-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guide-step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.step-content p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.step-content a {
    color: #3b82f6;
    text-decoration: none;
}

.step-content a:hover {
    text-decoration: underline;
}