:root {
    --u-gap: 16px;
    --u-border: #e5e7eb;
    --u-bg: #fff;
    --u-muted: #6b7280;
    --u-radius: 14px;
}

.niru-wrap {
/*     max-width: 900px; */
    margin: 0 auto;
}

.niru-head h2 {
    margin: 8px 0 12px;
    font-size: 23px;
}

.niru-card {
    background: var(--u-bg);
    border: 1px solid var(--u-border);
    border-radius: var(--u-radius);
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .03);
    margin-bottom: var(--u-gap);
}

.niru-periods-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.niru-periods-head input[type=text] {
    border: 1px solid var(--u-border);
    border-radius: 6px;
    padding: 8px 10px;
    width: 100%;
	    max-width: 270px;
}

.niru-list .niru-row {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 10px;
    align-items: center;
    border-bottom: 1px dashed var(--u-border);
    padding: 10px 4px;
    font-size: 15px;
}

.niru-list .niru-row .niru-row {
    grid-template-columns: 1fr 1fr 1fr 0.5fr;
}

.niru-list .niru-row.head {
    font-weight: 700;
    border-bottom: 2px solid var(--u-border);
}

.niru-list .niru-row:last-child {
    border-bottom: 0;
}

.niru-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.niru-detail-title {
    font-weight: 700;
    font-size: 16px;
}

.niru-summary {
    display: flex;
    gap: 16px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid var(--u-border);
    border-radius: 12px;
    background: #fcfcfd;
    font-size: 17px;
}

.niru-table-wrap {
    overflow: auto;
}

.niru-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.niru-table th, .niru-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--u-border);
    text-align: right;
    vertical-align: top;
    font-size: 15px;
}

.niru-table thead th {
    background: #f9fafb;
    font-weight: 700;
    font-size: 15px;
}

.niru-wrap button {
    padding: 7px 15px;
    background: #FF8D24;
    border: none;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
}

.niru_m_title {
    display: none;
}

.score_label {
    width: max-content;
    padding: 5px 15px;
    font-size: 14px;
    border-radius: 25px;
}
.score_0{
    background: #FFD9E1;
    color: #ff0000;
    /* border: solid 1px #d32f2f; */
}
.score_1{
    background: #FFD9E1;
    color: #ff0000;
    /*border: solid 1px #f57c00;*/
}
.score_2{
    background: #DFFFD9;
    color: #366b00;
    /*border: solid 1px #fbc02d;*/
}
.score_3{
    background: #DFFFD9;
    color: #366b00;
    /*border: solid 1px #c4d018;*/
}
.score_4{
    background: #FFF1D9;
    color: #f56e00;
    /*border: solid 1px #7cb342;*/
}
.score_5{
    background: #FFF1D9;
    color: #f56e00;
    /*border: solid 1px #439811;*/
}
@media (max-width: 760px) {
    .niru-list .niru-row {
        grid-template-columns: 1fr 1fr;
    }

    .niru-list .niru-row .open-btn {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .niru-row.niru_m_head {
        grid-template-columns: 1fr;
        border: solid 1px #eee !important;
        margin-top: 15px;
        border-radius: 5px;
    }

    .niru-row.niru_m_head.head {
        border: none !important;
        border-bottom: 1px dashed var(--u-border) !important;
    }

    .niru-row.niru_m_head_body {
        display: none;
    }

    .niru-row.niru_m_body {
        grid-template-columns: 1fr !important;
        display: none;
        background: #f6f6f6;
        padding: 10px;
        border-radius: 6px;
    }

    .niru_m_title {
        display: block;
        font-size: 13px;
    }

    .niru_m_body div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .niru-summary {
        flex-direction: column
    }

    .niru-table thead{
        display: none;
    }
    .niru-table tr {
        display: flex;
        flex-direction: column;
        padding: 10px;
        background: #f7f7f7;
        margin-top: 10px;
        border-radius: 10px;
    }
    .niru-table th{
        display: none;
    }
    .niru-table td{
        border-bottom: none;
        font-size: 14px;
    }
    .niru-table td:last-child{
        display:flex;
        justify-content:center;
    }
    .niru-table td:first-child{
        font-weight: 700;
    }


}
