/* =========================
   FJC Fluid Search Ver1.1
========================= */

.fjc-fluid-search-box {
    margin-top: 28px;
}

/* Search Form */
.fjc-search-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #00263a;
}

.fjc-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
}

.fjc-search-input {
    width: 100%;
    max-width: 520px;
    padding: 13px 14px;
    border: 1px solid #cfd8df;
    border-radius: 6px;
    font-size: 15px;
}

.fjc-search-button {
    padding: 13px 24px;
    border: none;
    background: #d94848;
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
}

.fjc-search-button:hover {
    opacity: 0.86;
}

/* Result Table */
.fjc-search-result-area {
    margin-top: 28px;
}

.fjc-result-count {
    margin-bottom: 12px;
    font-weight: 700;
    color: #00263a;
}

.fjc-result-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.fjc-fluid-result-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.fjc-fluid-result-table th {
    background: #f1f5f8;
    border: 1px solid #d9e1e8;
    padding: 11px;
    text-align: left;
    color: #253745;
    white-space: nowrap;
}

.fjc-fluid-result-table td {
    border: 1px solid #e1e6eb;
    padding: 11px;
    vertical-align: top;
}

.fjc-fluid-name-link {
    color: #003b5c;
    text-decoration: underline;
}

.fjc-fluid-name-link:hover {
    color: #d94848;
}

/* Rating Badges */
.fjc-rating-badge {
    display: inline-flex;
    align-items: center;
    margin: 2px;
    border: 1px solid #d8dee4;
    border-radius: 999px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1;
    background: #fff;
}

.fjc-rating-label {
    padding: 5px 7px;
    background: #f2f4f6;
    color: #333;
    font-weight: 700;
}

.fjc-rating-value {
    padding: 5px 8px;
    font-weight: 700;
}

.fjc-rating-best .fjc-rating-value {
    color: #087f5b;
}

.fjc-rating-good .fjc-rating-value {
    color: #1971c2;
}

.fjc-rating-caution .fjc-rating-value {
    color: #e67700;
}

.fjc-rating-bad .fjc-rating-value {
    color: #c92a2a;
}

.fjc-rating-none .fjc-rating-value {
    color: #777;
}

/* Detail Page */
.fjc-fluid-detail {
    margin-top: 32px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dde5ec;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 38, 58, 0.06);
}

.fjc-back-link {
    display: inline-block;
    margin-bottom: 18px;
    font-weight: 700;
    color: #003b5c;
    text-decoration: none;
}

.fjc-back-link:hover {
    text-decoration: underline;
}

.fjc-fluid-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding-bottom: 22px;
    border-bottom: 1px solid #e3e9ef;
}

.fjc-fluid-detail-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    background: #eef4f8;
    color: #003b5c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 999px;
}

.fjc-fluid-detail h2 {
    margin: 0;
    color: #00263a;
    font-size: 34px;
    line-height: 1.3;
    font-weight: 700;
}

.fjc-fluid-detail-en {
    margin: 7px 0 0;
    color: #5f6f7a;
    font-size: 16px;
}

.fjc-fluid-detail-code {
    padding: 8px 12px;
    background: #f7f9fb;
    border: 1px solid #dce4eb;
    border-radius: 6px;
    color: #4d5b66;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* Summary Cards */
.fjc-fluid-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0 30px;
}

.fjc-summary-card {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e0e7ee;
    border-radius: 8px;
}

.fjc-summary-card span {
    display: block;
    margin-bottom: 6px;
    color: #6b7a86;
    font-size: 13px;
    font-weight: 700;
}

.fjc-summary-card strong {
    display: block;
    color: #00263a;
    font-size: 16px;
}

/* Sections */
.fjc-fluid-section {
    margin-top: 34px;
}

.fjc-fluid-section h3 {
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 5px solid #d94848;
    color: #00263a;
    font-size: 21px;
    font-weight: 700;
}

/* Detail Table */
.fjc-fluid-detail-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 12px;
    font-size: 14px;
}

.fjc-fluid-detail-table th {
    background: #f1f5f8;
    color: #253745;
    font-weight: 700;
}

.fjc-fluid-detail-table th,
.fjc-fluid-detail-table td {
    border: 1px solid #dce4eb;
    padding: 12px;
    vertical-align: top;
}

.fjc-fluid-detail-table td:nth-child(1) {
    width: 120px;
}

.fjc-fluid-detail-table td:nth-child(2) {
    width: 180px;
}

/* Overall Comment */
.fjc-overall-comment {
    background: #f8fafc;
    border: 1px solid #dce4eb;
    border-left: 5px solid #003b5c;
    border-radius: 6px;
    padding: 18px 20px;
    line-height: 1.9;
    color: #263845;
    font-size: 15px;
}

/* Mobile */
@media (max-width: 768px) {
    .fjc-search-row {
        flex-direction: column;
    }

    .fjc-search-button {
        width: 100%;
    }

    .fjc-fluid-result-table {
        min-width: 760px;
        font-size: 13px;
    }

    .fjc-fluid-detail {
        padding: 18px;
    }

    .fjc-fluid-detail-header {
        display: block;
    }

    .fjc-fluid-detail h2 {
        font-size: 26px;
    }

    .fjc-fluid-detail-code {
        display: inline-block;
        margin-top: 12px;
    }

    .fjc-fluid-summary-grid {
        grid-template-columns: 1fr;
    }

    .fjc-fluid-detail-table {
        font-size: 14px;
    }

    .fjc-fluid-detail-table th,
    .fjc-fluid-detail-table td {
        display: block;
        width: 100%;
    }
}
/* Filter Buttons */
.fjc-filter-block {
    margin: 24px 0;
}

.fjc-filter-title {
    font-weight: 700;
    color: #00263a;
    margin-bottom: 10px;
}

.fjc-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fjc-filter-button {
    display: inline-block;
    padding: 8px 13px;
    border: 1px solid #d6e0e8;
    border-radius: 999px;
    background: #ffffff;
    color: #003b5c;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.fjc-filter-button:hover {
    background: #eef4f8;
    color: #d94848;
}

.fjc-filter-button.is-active {
    background: #003b5c;
    color: #ffffff;
    border-color: #003b5c;
}

.fjc-clear-button {
    color: #777;
}
/* Category icon buttons */
.fjc-category-buttons {
    gap: 10px;
}

.fjc-category-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fjc-category-icon {
    font-size: 15px;
    line-height: 1;
}
/* Sub category buttons */
.fjc-sub-category-search {
    margin-top: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e0e7ee;
    border-radius: 8px;
}

.fjc-sub-category-button {
    background: #ffffff;
    font-size: 13px;
}
/* Mobile detail table improvement */
@media (max-width: 768px) {
    .fjc-fluid-detail-table thead {
        display: none;
    }

    .fjc-fluid-detail-table,
    .fjc-fluid-detail-table tbody,
    .fjc-fluid-detail-table tr,
    .fjc-fluid-detail-table td {
        display: block;
        width: 100%;
    }

    .fjc-fluid-detail-table tr {
        margin-bottom: 14px;
        border: 1px solid #dce4eb;
        border-radius: 8px;
        overflow: hidden;
        background: #ffffff;
    }

    .fjc-fluid-detail-table td {
        border: none;
        padding: 10px 12px;
    }

    .fjc-fluid-detail-table td:nth-child(1) {
        background: #f1f5f8;
        font-weight: 700;
        font-size: 16px;
    }

    .fjc-fluid-detail-table td:nth-child(2) {
        background: #ffffff;
    }

    .fjc-fluid-detail-table td:nth-child(3) {
        background: #ffffff;
        line-height: 1.8;
    }
}
/* =========================
   Material Evaluation Cards
========================= */

.fjc-material-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.fjc-material-card {
    border: 1px solid #d9e2ea;
    border-radius: 10px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 4px 14px rgba(0, 38, 58, 0.04);
}

.fjc-material-title {
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
}

.fjc-material-comment {
    padding: 0;
    color: #263845;
    line-height: 1.8;
    font-size: 14px;
}

/* =========================
   Mobile Detail Layout
========================= */

@media (max-width: 768px) {

    .fjc-fluid-detail-code {
        display: none !important;
    }

    .fjc-fluid-detail {
        padding: 22px 18px !important;
    }

    .fjc-fluid-detail h2 {
        font-size: 30px !important;
        line-height: 1.35 !important;
        margin-bottom: 18px !important;
        word-break: keep-all;
    }

    .fjc-fluid-detail-en {
        font-size: 18px !important;
        line-height: 1.6 !important;
        margin-bottom: 22px !important;
    }

    .fjc-fluid-summary-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-top: 20px !important;
        margin-bottom: 34px !important;
    }

    .fjc-summary-card {
        padding: 12px 0 !important;
        border: none !important;
        background: transparent !important;
    }

    .fjc-summary-card span {
        display: inline-block !important;
        margin-right: 8px !important;
        font-size: 15px !important;
    }

    .fjc-summary-card strong {
        display: inline !important;
        font-size: 16px !important;
    }

    .fjc-fluid-section {
        margin-top: 40px !important;
    }

    .fjc-fluid-section h3 {
        font-size: 26px !important;
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
    }

    .fjc-material-list {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-top: 18px !important;
    }

    .fjc-material-card {
        display: block !important;
        background: #ffffff !important;
        border: 1px solid #d9e2ea !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 14px rgba(0, 38, 58, 0.05) !important;
        padding: 16px !important;
        margin-bottom: 0 !important;
        overflow: hidden !important;
    }

    .fjc-material-title {
        display: block !important;
        margin-bottom: 10px !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .fjc-material-comment {
        display: block !important;
        padding: 0 !important;
        font-size: 15px !important;
        line-height: 1.9 !important;
        color: #263845 !important;
    }

    .fjc-rating-badge {
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }

    .fjc-rating-label,
    .fjc-rating-value {
        padding: 6px 9px !important;
    }

 .fjc-fluid-detail .fjc-fluid-section .fjc-overall-comment {
    background: #ffffff !important;
    border: 1px solid #d9e2ea !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,38,58,.05) !important;
    padding: 20px !important;

    font-size: 17px !important;
    line-height: 2 !important;
    color: #263845 !important;
}

}