body {
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #0b1020;
    color: #e8eaf0;
}
.main {
    display: flex;
    flex-direction: row;
}
.side {
    display: flex;
    flex-direction: column;
    width: 200px;
    height: 100vh;

    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 5px;
}
.menu-item {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
    margin-bottom: 10px;
}
    .menu-item:hover {
        background: rgba(255, 255, 255, .07);
    }

    .menu-item.selected {
        border-bottom-color: #ffefbe;
    }

    .content {
        padding: 10px;
        width: 100%;        
    }

.btn {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: #e8eaf0;
    cursor: pointer;    
}

    .btn:hover {
        background: rgba(255, 255, 255, .09);
    }

    .btn.small {
        padding: 5px 6px;
        border-radius: 5px;
        font-size: 80%;
    }

    .btn.primary {
        background: #2b66ff;
        border-color: rgba(255, 255, 255, .12);
    }

        .btn.primary:hover {
            background: #2b99ff;
        }

.tabs {
    margin-bottom: 10px;
    display: flex;
    gap: 5px
}

.tab {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
}

    .tab.selected {
        border-bottom: 1px solid #2b66ff;
    }

input[type=text] {
    padding: 10px;
    margin: 5px 0px 10px;
}



.branch-card {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: #e8eaf0;
    margin: 10px;
    padding: 10px;
}

.branch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, .12);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stats-section {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: #e8eaf0;
    padding: 15px;
    border-radius: 8px;
}

    .stats-section h3 {
        margin-top: 0;
        font-size: 1.1rem;
        color: white;
    }

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    margin: 5px 0;
    overflow: hidden;
}

.progress {
    background: #4caf50;
    height: 100%;
}

.text-danger {
    color: #d32f2f;
}

.nps-score {
    color: #2196f3;
    font-size: 1.2rem;
}

/*************************/
.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 70%;
    justify-content: flex-end;
}

.tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.comment-box {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

/* Цвета для статусов */
.green {
    background: #d7ffda;
    color: #212121;
}

.red {
    background: #ffcfd6;
    color: #212121;
}

.orange {
    background: #ffe4ba;
    color: #212121;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.stat-item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.stat-label {
    font-size: 12px;
    color: #bbbbbb;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stat-delta {
    font-size: 12px;
    font-weight: normal;
}

    .stat-delta.green {
        background: transparent;
        color: #38d140;
    }

    .stat-delta.red {
        background: transparent;
        color: #fb1919;
    }

    .stat-delta.orange {
        background: transparent;
        color: #ff7300;
    }