/*----------------- 
Frontend related CSS
-----------------*/

div.stat_item {
    margin-top: 25px;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}


div.stat_item summary {
    font-size: 0.75em;
    font-weight: bold;
    margin-bottom: 0.5em;
    display: inline-block;
    padding-left: 1.5em;
    position: relative;
}

div.stat_item summary:before {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    content: '';
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><g data-name="92-Arrow Right"><path d="M16 32a16 16 0 1 1 16-16 16 16 0 0 1-16 16zm0-30a14 14 0 1 0 14 14A14 14 0 0 0 16 2z"/><path d="M13.71 24.71 12.3 23.3l7.29-7.3-7.3-7.29L13.7 7.3l8 8a1 1 0 0 1 0 1.41z"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    transform: rotate(90deg);
    transition: all 0.3s ease-in-out;
    position: absolute;
    top: 0.25em;
    left: 0;
}

div.stat_item details {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

div.stat_item .stat_item_note {
    font-size: 0.85em;
    font-style: italic;
}

div.stat_item details[open] summary:before {
    transform: rotate(-90deg);
}

div.stat_item .chart-container,
div.stat_item .google-visualization-table {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

div.stat_item .google-visualization-table-td.google-visualization-table-type-number {
    text-align: left;
}

div.stat_item .google-visualization-table-th {
    background-color: #e4e4e4;
}

div.stat_item tbody tr.google-visualization-table-tr-sel:nth-child(2n) {
    background-color: #d6e9f8;
}

div.stat_item tbody tr.google-visualization-table-tr-over:nth-child(2n) {
    background-color: #e7e9f9;
}