/* ==========================================================
   SEPTIMA actions.css v0.1
   Ikonová akční tlačítka pro tabulky a administraci
   ========================================================== */

.action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2.25rem;
    height: 2.25rem;

    padding: 0;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);
    color: var(--text);

    text-decoration: none;
    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.action:hover {
    background: var(--surface-muted);
}

.action svg {
    width: 1.125rem;
    height: 1.125rem;

    stroke: currentColor;
    fill: none;

    flex-shrink: 0;
}

.action-info {
    color: var(--info-dark);
}

.action-primary {
    color: var(--primary);
}

.action-success {
    color: var(--success-dark);
}

.action-warning {
    color: var(--warning-dark);
}

.action-danger {
    color: var(--danger-dark);
}

.action-dark {
    color: var(--text-muted);
}

.action-group {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.action-sm {
    width: 2rem;
    height: 2rem;
}

.action-lg {
    width: 2.5rem;
    height: 2.5rem;
}

.action-sm svg {
    width: 1rem;
    height: 1rem;
}

.action-lg svg {
    width: 1.25rem;
    height: 1.25rem;
}

.button svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.action {
    min-width: 2.5rem;
    min-height: 2.5rem;
}

@media (max-width: 640px) {
    .action-group {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .action {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }
}