.main-three-part-grid-container .tool-form-oil-price {
    --oil-primary: #3280f8;
    --oil-primary-deep: #2563eb;
    --oil-bg-soft: #f5f8fc;
    --oil-bg-hover: #eef4fd;
    --oil-border-soft: #dbeafe;
    --oil-price-92: #3280f8;
    --oil-price-95: #6366f1;
    --oil-price-98: #8b5cf6;
    --oil-price-0: #0ea5e9;
    --oil-low-bg: #ecfdf3;
    --oil-low-text: #16a34a;
    --oil-high-bg: #fef2f2;
    --oil-high-text: #dc2626;
}

.main-three-part-grid-container .tool-form-oil-price .oil-price-intro {
    margin-bottom: 12px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.main-three-part-grid-container .tool-form-oil-price .oil-price-desc {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.65;
}

.main-three-part-grid-container .tool-form-oil-price .oil-price-meta {
    margin: 0 0 8px;
}

.main-three-part-grid-container .tool-form-oil-price .oil-price-update-badge {
    display: inline;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #c5ccd6;
    background: transparent;
}

.main-three-part-grid-container .tool-form-oil-price .oil-price-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.main-three-part-grid-container .tool-form-oil-price .oil-price-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.main-three-part-grid-container .tool-form-oil-price .oil-price-legend-item::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
}

.main-three-part-grid-container .tool-form-oil-price .oil-price-legend-low::before {
    background: var(--oil-low-bg);
    border: 1px solid #bbf7d0;
}

.main-three-part-grid-container .tool-form-oil-price .oil-price-legend-high::before {
    background: var(--oil-high-bg);
    border: 1px solid #fecaca;
}

.main-three-part-grid-container .tool-form-oil-price .update-time {
    color: inherit;
    font-size: inherit;
}

.main-three-part-grid-container .tool-form-oil-price .oil-price-fetch-time {
    opacity: 0;
}

.main-three-part-grid-container .tool-form-oil-price .oil-price-table-card {
    margin-bottom: 0;
}

.main-three-part-grid-container .tool-form-oil-price .table-wrapper {
    overflow: visible;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.main-three-part-grid-container .tool-form-oil-price .price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.8125rem;
    background: #fff;
    table-layout: fixed;
    border: none;
}

.main-three-part-grid-container .tool-form-oil-price .price-table thead tr.price-table-subhead th {
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

.main-three-part-grid-container .tool-form-oil-price .price-table thead tr.price-table-subhead th:first-child {
    padding-left: 1rem;
    text-align: left;
    color: #334155;
    width: 18%;
}

.main-three-part-grid-container .tool-form-oil-price .price-table thead tr.price-table-subhead th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-three-part-grid-container .tool-form-oil-price .price-table thead tr.price-table-subhead th.sortable:hover {
    background: var(--oil-bg-hover);
}

.main-three-part-grid-container .tool-form-oil-price .price-table thead tr.price-table-subhead th[data-sort-col="1"],
.main-three-part-grid-container .tool-form-oil-price .price-table thead tr.price-table-subhead th[data-sort-col="2"],
.main-three-part-grid-container .tool-form-oil-price .price-table thead tr.price-table-subhead th[data-sort-col="3"],
.main-three-part-grid-container .tool-form-oil-price .price-table thead tr.price-table-subhead th[data-sort-col="4"] {
    color: #64748b;
    box-shadow: none;
}

.main-three-part-grid-container .tool-form-oil-price .price-table .sort-indicator {
    display: inline-block;
    width: 16px;
    margin-left: 4px;
    text-align: center;
    vertical-align: middle;
}

.main-three-part-grid-container .tool-form-oil-price .price-table .sort-indicator::after {
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    color: #94a3b8;
    font-weight: 600;
    content: "↕";
}

.main-three-part-grid-container .tool-form-oil-price .price-table thead tr.price-table-subhead th.sortable:hover .sort-indicator::after {
    color: #64748b;
}

.main-three-part-grid-container .tool-form-oil-price .price-table tbody tr {
    transition: background 0.15s ease;
}

.main-three-part-grid-container .tool-form-oil-price .price-table tbody tr:nth-child(even) td {
    background: #fafbfc;
}

.main-three-part-grid-container .tool-form-oil-price .price-table tbody td {
    padding: 0.55rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    text-align: center;
    color: #64748b;
    border: none;
    border-top: 1px solid #f1f5f9;
    background: #fff;
    transition: background 0.15s ease;
    box-sizing: border-box;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.main-three-part-grid-container .tool-form-oil-price .price-table tbody tr:first-child td {
    border-top: none;
}

.main-three-part-grid-container .tool-form-oil-price .price-table tbody tr:hover td {
    background: var(--oil-bg-hover);
}

.main-three-part-grid-container .tool-form-oil-price .price-table tbody td:first-child {
    padding-left: 1rem;
    font-weight: 600;
    text-align: left;
    color: #334155;
    border-right: 1px solid #f1f5f9;
}

.main-three-part-grid-container .tool-form-oil-price .price-table tbody td:nth-child(n+2) {
    color: #64748b;
    font-weight: 500;
}

.main-three-part-grid-container .tool-form-oil-price .price-table tbody td.price-low {
    background: var(--oil-low-bg) !important;
    color: var(--oil-low-text);
    font-weight: 700;
}

.main-three-part-grid-container .tool-form-oil-price .price-table tbody td.price-high {
    background: var(--oil-high-bg) !important;
    color: var(--oil-high-text);
    font-weight: 700;
}

.main-three-part-grid-container .tool-form-oil-price .price-table th.is-sorted-asc .sort-indicator::after,
.main-three-part-grid-container .tool-form-oil-price .price-table th.is-sorted-desc .sort-indicator::after {
    color: var(--oil-primary-deep);
    font-size: 14px;
    font-weight: 700;
}

.main-three-part-grid-container .tool-form-oil-price .price-table th.is-sorted-asc .sort-indicator::after {
    content: "↑";
}

.main-three-part-grid-container .tool-form-oil-price .price-table th.is-sorted-desc .sort-indicator::after {
    content: "↓";
}

.main-three-part-grid-container .tool-form-oil-price .price-table th.is-sorted-asc,
.main-three-part-grid-container .tool-form-oil-price .price-table th.is-sorted-desc {
    background: #eef4ff;
}

.main-three-part-grid-container .tool-form-oil-price .oil-price-sync-row td {
    padding: 40px 16px;
    color: #94a3b8;
    font-size: 0.875rem;
    text-align: center;
}

.main-three-part-grid-container .tool-info-oil-price {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .main-three-part-grid-container .tool-form-oil-price .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-three-part-grid-container .tool-form-oil-price .price-table {
        min-width: 560px;
    }
}
