@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200..800&display=swap');

:root {
    --bg: #f5f8ff;
    --card: #ffffff;
    --muted: #6b6b6b;
    --positive-bg: #e9f6ea;
    --positive-text: #125b2e;
    --negative-bg: #fdecea;
    --negative-text: #7a2118;
    --accent: #301a0c;
    --divider: #e6e9e5;
    --title: #301a0c;
}

* {
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: "Nunito", serif;
    margin: 0;
    padding: 0;
    background: #f5f8ff;
    color: #000;
    font-size: 14px;
    background: var(--bg);
}

nav ul{
    margin: 20px 0;
    border-bottom: 1px solid #CCC;
}

nav ul li{
    list-style: none;
    display: inline-block;
    padding: 10px 15px;
    margin: 0 2px -1px 2px;
    border: 1px solid #EEE;
    border-bottom: 1px solid #CCC;
    background: #FFF;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-weight: 600;
}

nav ul li.active{
    border-color: #CCC;
    border-bottom: 1px solid #FFF;
}

.content > div {
    display: none;
}

.content > div.show {
    display: block;
}

.section-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--accent);
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--divider);
}

.card {
    background: var(--card);
    border-radius: 12px;
    padding: 12px;
    margin: 8px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

strong {
    font-weight: 800;
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed #CCC;
}

.row:last-child,
.row.no_border {
    border-bottom: none;
}

.k {
    font-size: 13px;
    color: var(--muted);
    flex: 1;
    word-break: break-word;
    font-weight: 600;
}

.v {
    font-weight: 700;
    font-size: 14px;
    text-align: right;
}

.small {
    font-size: 12px;
    color: #7a7a7a;
    display: block;
    margin-top: 4px;
    font-weight: 500;
}

.meta {
    display: flex;
    flex-direction: column;
    text-align: right;
    align-items: flex-end;
}

.meta_inline{
    display: flex;
    text-align: right;
    align-items: center;
    gap: 10px;
}

.badge {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

#orders .badge{
    padding: 1px 6px;
    font-size: 11px;
}

svg{
    width: 14px;
    height: 14px;
    margin: 0 1px -3px 0;
}

.badge span{
    font-weight: 400;
}

.percentages{
    margin-left: auto;
}

.percentages span{
    font-size: 11px;
}

.positive {
    background: var(--positive-bg);
    color: var(--positive-text);
}

.negative {
    background: var(--negative-bg);
    color: var(--negative-text);
}

.neutral {
    background: #ececec;
    color: var(--muted);
    border: 1px solid transparent;
    font-weight: 600;
}

.warning {
    background: #FF660024;
    color: #F60;
}

.store-name {
    font-weight: 700;
    font-size: 14px;
    background: var(--title);
    color: #FFF;
    padding: 10px 20px;
    margin: -10px -10px 5px -10px;
}

.grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-container {
    position: relative;
    width: 100%;
    height: 22px;
    background: #e0e0e0;
    border-radius: 20px;
    --color-progress: #003366;
    --color-bg: #e0e0e0;
    --text-dark: #444;
    --text-light: #fff;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--value);
    background: #2563eb;
    border-radius: inherit;
    transition: width 0.4s ease;
    border-radius: 20px;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: transparent;
    background: linear-gradient(to right, var(--text-light) 0 calc(var(--value) + 0%), var(--text-dark) calc(var(--value) + 0%) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.month-progress {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: #555;
}

.month-progress:before {
    content: '0%';
    position: absolute;
    left: 0;
    bottom: -15px;
    font-size: 11px;
    color: #666;
    transform: translateX(-35%);
}

@media (min-width:900px) {
    .content > div.show {
        display: flex;
        gap: 20px;
    }

    .content > div.show > div{
        width: 100%;
    }

}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 20px auto 40px auto;
}

h1 {
    font-weight: 600;
    font-size: 26px;
    margin: 0;
}

h1 strong {
    font-weight: 700;
}

h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #505768;
    border-bottom: 1px solid #DDD;
    padding-bottom: 8px;
}

h2 img {
    display: inline-block;
    margin: 0px 10px -5px 0;
    width: 22px;
}

a {
    color: #6ea8ff;
    display: block;
    margin: 3px 0;
}

.alert {
    padding: 10px 20px;
    margin: 20px 0;
    border-radius: 5px;
    border: 1px solid;
}

.alert_danger {
    background: #f8d7da;
    color: #58151c;
    border-color: #f1aeb5;
}

.collapsed {
    display: none;
}

.collapsed.show {
    display: block;
}

.toggle_collapse {
    border-radius: 10px;
    padding: 10px 40px 10px 10px !important;
    position: relative;
    margin: 20px 0 0 0!important;
    cursor: pointer;
    background: #EAECF2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.toggle_collapse:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 14px;
    width: 20px;
    height: 20px;
    background-image: url('../img/arrow_down.svg');
    background-repeat: no-repeat;
}


.toggle_collapse_opened:after {
    transform: rotate(180deg);
    top: 10px;
}

.row_grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.row_grid .row{
    padding: 5px 0;
}

hr{
    border: none;
    border-top: 1px solid #DDD;
    margin: 10px 0;
}

@media (max-width:500px) {
    h1 {
        font-size: 20px;
    }

    .progressbar li {
        float: unset;
        width: unset;
        text-align: unset;
        line-height: 30px;
        padding-left: 35px;
        background: #D9DDE6;
        border-radius: 5px;
        border: 1px solid #BABFCA;
        margin-bottom: 5px;
    }

    .progressbar li.active {
        background: #198754;
        background: linear-gradient(240deg, rgb(9, 121, 60) 19%, rgb(12, 94, 33) 100%);
        border-color: #198754;
        color: #FFF;
    }

    .progressbar li.active::before {
        background: none;
        border: none;
    }

    .progressbar li::before {
        margin: unset;
        line-height: 30px;
        position: absolute;
        left: 0;
        border: none;
        background: none;
    }

    .progressbar li::after {
        content: none;
    }

    @media(max-width: 400px){
        .row_grid{
            grid-template-columns: 1fr;
        }

        .row_grid > div:last-child{
            margin-top: 30px;
        }
    }

}