/**
 * GT-NET 不審車両情報管理プラグイン CSS
 */

/* コンテナ（幅はページテンプレート側で制御） */
.gtnet-suspicious-vehicle-wrap {
    width: 100%;
}

/* フィルター・検索UI */
.gtnet-suspicious-vehicle-filters {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 20px;
    margin-bottom: 30px;
}

.gtnet-suspicious-vehicle-filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gtnet-suspicious-vehicle-filter-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.gtnet-suspicious-vehicle-filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gtnet-suspicious-vehicle-filter-item-search {
    flex: 1;
    min-width: 200px;
}

.gtnet-suspicious-vehicle-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gtnet-suspicious-vehicle-search-input {
    padding: 0 1rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    line-height: 38px !important;
    height: 38px !important;
    background-color: #fff !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box !important;
}

.gtnet-suspicious-vehicle-search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* ボタン */
.gtnet-suspicious-vehicle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    background-color: #1e293b;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    height: 38px;
    box-sizing: border-box;
}

.gtnet-suspicious-vehicle-btn:hover {
    background-color: #334155;
}

.gtnet-suspicious-vehicle-btn:active {
    background-color: #475569;
}

.gtnet-suspicious-vehicle-btn-search {
    min-width: 100px;
}

/* テーブル */
.gtnet-suspicious-vehicle-table-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 0 0 1px #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
}

.gtnet-suspicious-vehicle-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.gtnet-suspicious-vehicle-table thead {
    background-color: #000 !important;
}

.gtnet-suspicious-vehicle-table th {
    padding: 12px 15px;
    text-align: center;
    font-weight: 700;
    color: #fff !important;
    background-color: #000 !important;
    border: none !important;
    height: 3rem;
}

.gtnet-suspicious-vehicle-th-location,
.gtnet-suspicious-vehicle-th-hiragana,
.gtnet-suspicious-vehicle-th-number,
.gtnet-suspicious-vehicle-th-maker,
.gtnet-suspicious-vehicle-th-model,
.gtnet-suspicious-vehicle-th-color,
.gtnet-suspicious-vehicle-th-features {
    color: #fff !important;
    background-color: #000 !important;
}

.gtnet-suspicious-vehicle-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    color: #334155;
    text-align: center;
}

.gtnet-suspicious-vehicle-td-features {
    text-align: left;
}

.gtnet-suspicious-vehicle-table tbody tr:hover {
    background-color: #f8fafc;
}

.gtnet-suspicious-vehicle-table tbody tr:last-child td {
    border-bottom: none;
}

/* 行クリックで展開：リンクされた被害発生状況 */
.gtnet-vehicle-data-row {
    cursor: pointer;
}

.gtnet-vehicle-related-damage-row[aria-hidden="true"] {
    display: none;
}

.gtnet-vehicle-related-damage-row[aria-hidden="false"] {
    display: table-row;
}

.gtnet-vehicle-related-damage-cell {
    background: #f1f5f9;
    padding: 12px 15px 16px 24px !important;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.gtnet-vehicle-related-damage-inner {
    max-width: 800px;
}

.gtnet-vehicle-related-damage-header {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
    font-size: 14px;
}

.gtnet-vehicle-related-damage-list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.gtnet-vehicle-related-damage-item {
    margin-bottom: 4px;
}

.gtnet-vehicle-related-damage-item a {
    color: #2563eb;
    text-decoration: none;
}

.gtnet-vehicle-related-damage-item a:hover {
    text-decoration: underline;
}

.gtnet-vehicle-related-damage-empty {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* No.列 */
.gtnet-suspicious-vehicle-th-no,
.gtnet-suspicious-vehicle-td-no {
    width: 80px;
    white-space: nowrap;
}

.gtnet-suspicious-vehicle-td-no {
    font-weight: 600;
}

.gtnet-suspicious-vehicle-td-no a {
    color: #2563eb;
    text-decoration: none;
}

.gtnet-suspicious-vehicle-td-no a:hover {
    text-decoration: underline;
}

/* テーブル列幅 */
.gtnet-suspicious-vehicle-th-location,
.gtnet-suspicious-vehicle-td-location {
    width: 120px;
    white-space: nowrap;
}

.gtnet-suspicious-vehicle-th-hiragana,
.gtnet-suspicious-vehicle-td-hiragana {
    width: 150px;
}

.gtnet-suspicious-vehicle-th-number,
.gtnet-suspicious-vehicle-td-number {
    width: 150px;
    white-space: nowrap;
}

.gtnet-suspicious-vehicle-th-maker,
.gtnet-suspicious-vehicle-td-maker {
    width: 120px;
}

.gtnet-suspicious-vehicle-th-model,
.gtnet-suspicious-vehicle-td-model {
    width: 120px;
}

.gtnet-suspicious-vehicle-th-color,
.gtnet-suspicious-vehicle-td-color {
    width: 100px;
}

.gtnet-suspicious-vehicle-th-features,
.gtnet-suspicious-vehicle-td-features {
    min-width: 200px;
}

/* 空メッセージ */
.gtnet-suspicious-vehicle-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .gtnet-suspicious-vehicle-page {
        padding: 15px;
    }

    .gtnet-suspicious-vehicle-filters {
        padding: 15px;
    }

    .gtnet-suspicious-vehicle-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gtnet-suspicious-vehicle-filter-item {
        width: 100%;
    }

    .gtnet-suspicious-vehicle-search-input {
        max-width: 100%;
    }

    .gtnet-suspicious-vehicle-btn {
        width: 100%;
    }

    .gtnet-suspicious-vehicle-table-wrapper {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .gtnet-suspicious-vehicle-table {
        min-width: 800px;
    }

    .gtnet-suspicious-vehicle-table th,
    .gtnet-suspicious-vehicle-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 統計 */
.gtnet-suspicious-vehicle-stats {
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.gtnet-suspicious-vehicle-stats strong {
    color: #1e293b;
    font-weight: 700;
}

/* ページネーション */
.gtnet-suspicious-vehicle-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.gtnet-suspicious-vehicle-pagination a,
.gtnet-suspicious-vehicle-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-decoration: none;
    color: #334155;
    background: #fff;
    transition: all 0.15s;
}

.gtnet-suspicious-vehicle-pagination a:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.gtnet-suspicious-vehicle-pagination span.current {
    background: #1e293b;
    color: #fff;
    border-color: #1e293b;
    font-weight: 700;
}
