/* Harga Komoditas Styles */
.hierarchical-table {
    font-size: 14px;
    width: 100%;
}

.parent-commodity {
    font-weight: bold;
    background-color: #f8f9fa;
    border-left: 4px solid #3c8dbc;
}

.child-commodity td:first-child {
    padding-left: 35px;
    position: relative;
}

.child-commodity td:first-child:before {
    content: "└─";
    position: absolute;
    left: 15px;
    color: #999;
    font-weight: bold;
}

.parent-commodity:hover,
.child-commodity:hover {
    background-color: #e9ecef;
}

/* Price change styling */
.price-change-up {
    color: #d73925;
    font-weight: 600;
}

.price-change-down {
    color: #00a65a;
    font-weight: 600;
}

.price-change-stable {
    color: #6c757d;
}

/* Trend styling */
.trend-indicator {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.trend-up {
    background-color: #d73925;
    color: white;
}

.trend-down {
    background-color: #00a65a;
    color: white;
}

.trend-stable {
    background-color: #999;
    color: white;
}

.date-header {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    min-width: 100px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.price-cell {
    text-align: right;
    font-weight: 500;
}

@media (max-width: 768px) {
    .date-header {
        min-width: 80px;
        font-size: 11px;
    }

    .hierarchical-table {
        font-size: 12px;
    }

    .child-commodity td:first-child {
        padding-left: 25px;
    }

    .child-commodity td:first-child:before {
        left: 10px;
    }
}
