:root { --bg: #121212; --card-bg: #1e1e1e; --accent: #00e676; --text: #e0e0e0; --info: #007bff; }
        body { font-family: sans-serif; background: var(--bg); color: var(--text); margin: 0; padding: 10px; display: flex; flex-direction: column; align-items: center; overflow-x: hidden; }
        .container { width: 100%; max-width: 400px; }
        /* Добавь это в блок <style> */
.btn-save { 
    width: 100%; 
    padding: 15px; 
    background: var(--accent); 
    color: #000; 
    border: none; 
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 1.1rem; 
    cursor: pointer; 
    transition: all 0.2s;
    display: block;
    box-sizing: border-box;
}

.btn-save:disabled {
    background: #333 !important;
    color: #666 !important;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Эффект пульсации для активной кнопки */
.pulse-green {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}
        .category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; width: 100%; }
        .cat-btn { background: var(--card-bg); border: 1px solid #333; border-radius: 8px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
        .cat-btn i { font-size: 1.2rem; color: #888; }
        .cat-btn span { font-size: 0.55rem; text-align: center; color: #aaa; pointer-events: none; }
        .cat-btn.selected { background: var(--info); border-color: #fff; }
        .cat-btn.selected i, .cat-btn.selected span { color: #fff; }

        .card { background: var(--card-bg); padding: 12px; border-radius: 12px; border: 1px solid #333; width: 100%; box-sizing: border-box; }
        
        .row-flex { display: flex; gap: 8px; margin-bottom: 10px; }
        .flex-bc { flex: 3; }
        .flex-qty { flex: 1; }

        input { width: 100%; padding: 12px; background: #2d2d2d; border: 1px solid #444; color: #fff; border-radius: 8px; font-size: 16px; box-sizing: border-box; outline: none; margin-bottom: 8px; }
        
        .location-btns { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 6px; margin-bottom: 10px; }
        .loc-tag { background: #333; border: 1px solid #444; padding: 10px; border-radius: 8px; font-size: 0.75rem; text-align: center; cursor: pointer; }
        .loc-tag.active { background: #444; border-color: var(--accent); color: var(--accent); }

        .btn-camera { 
            background: #333; color: white; border: 1px solid #444; padding: 15px; border-radius: 8px; 
            display: block; width: 100%; text-align: center; font-weight: bold; cursor: pointer; 
            margin-bottom: 12px; box-sizing: border-box;
        }
        .btn-camera.active { background: var(--info) !important; border-color: #fff !important; }
        
        .btn-main { width: 100%; padding: 15px; background: var(--accent); color: #000; border: none; border-radius: 8px; font-weight: bold; font-size: 1.1rem; cursor: pointer; }
        
        .recent-list { margin-top: 12px; background: var(--card-bg); border-radius: 10px; padding: 8px; border: 1px solid #333; width: 100%; box-sizing: border-box; }
        .history-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
        .history-table th { color: #666; text-align: left; padding-bottom: 5px; font-size: 0.65rem; border-bottom: 1px solid #333; }
        .history-table td { padding: 8px 0; border-bottom: 1px solid #222; vertical-align: middle; }
        .col-bc { width: 45%; color: #fff; }
        .col-cat { width: 20%; color: #888; }
        .col-qty { width: 10%; text-align: center; font-weight: bold; }
        .col-loc { width: 25%; text-align: right; color: #ff9800; font-weight: bold; }

        .button-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
        .btn-sub { background: #2d2d2d; color: var(--text); padding: 8px; border-radius: 8px; font-size: 0.7rem; border: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.loc-counter {
    background: rgba(0, 230, 118, 0.2); /* Твой зеленый акцент, но прозрачный */
    color: var(--accent); /* Яркий текст */
    border: 1px solid var(--accent);
    border-radius: 4px; /* Квадратные со скруглением смотрятся серьезнее */
    padding: 1px 4px;
    font-size: 0.7rem;
    font-weight: bold;
    display: none;
    margin-left: 5px;
    vertical-align: middle;
}
.sub-loc-group {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 10px;
    margin-top: 5px;
    border: 1px dashed #444;
    width: 100%;
    box-sizing: border-box;
}

.loc-tag.sub { background: #252525; font-size: 0.65rem; }
.loc-tag.mini { padding: 8px 2px; font-size: 0.8rem; background: #2d2d2d; }