/* ══════════════════════════════════════════════════════
   mobile-tables.css — карточки для сотрудников и расходов
   ══════════════════════════════════════════════════════ */

/* Базовая карточка */
.mob-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

/* Шапка расходной карточки */
.mob-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.mob-card-month  { font-size: 13px; color: rgba(255,255,255,0.5); }
.mob-card-amount { font-size: 18px; font-weight: 700; color: #f44336; }

/* Название */
.mob-card-title {
    font-size: 15px; font-weight: 600;
    color: rgba(255,255,255,0.9); margin-bottom: 4px;
}

/* Подзаголовок */
.mob-card-sub {
    font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 10px;
}

/* Описание */
.mob-card-desc {
    font-size: 13px; color: rgba(255,255,255,0.6);
    margin-bottom: 10px; font-style: italic;
}

/* Сетка ячеек */
.mob-card-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12px;
}
.mob-cell {
    background: rgba(255,255,255,0.03); border-radius: 6px; padding: 7px 10px;
}
.mob-cell-wide   { grid-column: span 2; }
.mob-label       { color: rgba(255,255,255,0.4); margin-bottom: 2px; }
.mob-val         { font-weight: 600; color: rgba(255,255,255,0.85); }
.mob-val-green   { color: #4caf50; }

/* Кнопки */
.mob-card-actions {
    margin-top: 10px; display: flex; gap: 8px; justify-content: flex-end;
}

/* Акценты по типу */
.emp-card { border-left: 3px solid rgba(33, 150, 243, 0.7); }
.exp-card { border-left: 3px solid rgba(244, 67, 54,  0.6); }

/* ── Мобильные правки форм ── */
@media (max-width: 640px) {
    /* Фильтр расходов — в столбик */
    #expenses .filter-row {
        flex-direction: column; gap: 10px;
    }
    #expenses .filter-row .btn {
        width: 100%; margin-bottom: 0 !important;
    }
    #expenses .filter-row .form-group {
        min-width: 0 !important;
    }

    /* Грид зарплата+валюта → в столбик */
    #employees [style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}