:root {
    --sf-primary: #2d3436;
    --sf-accent: #ff7675;
    --sf-bg: #f5f7fa;
}

body {
    background-color: var(--sf-bg);
}

.terminal-body {
    background-color: var(--sf-bg);
    min-height: 100vh;
}

.terminal-main {
    display: flex;
    justify-content: center;
}

.terminal-container {
    width: min(100%, 960px);
    padding-inline: 1rem;
}

.auth-container {
    max-width: 420px;
    margin: 4rem auto;
}

.category-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.category-button,
.service-button {
    padding: 1.5rem;
    font-size: 1.25rem;
    border-radius: 1rem;
    background: white;
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(45, 52, 54, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
}

.category-button:hover,
.service-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(45, 52, 54, 0.15);
}

.category-delete-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.category-delete-btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.terminal-bottom-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.terminal-bottom-actions__item {
    flex: 1 1 220px;
}

.numeric-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.numeric-keypad button {
    padding: 1.5rem;
    font-size: 1.5rem;
    border-radius: 0.75rem;
    border: none;
    background: #ffffff;
    box-shadow: 0 0.25rem 0.75rem rgba(45, 52, 54, 0.1);
    transition: transform 0.1s ease;
    color: black;
}

.numeric-keypad button:active {
    transform: scale(0.98);
}

.cart-quantity-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.crm-transaction-row {
    cursor: pointer;
    transition: background-color 0.18s ease;
}

.crm-transaction-row:focus-within,
.crm-transaction-row:hover {
    background-color: rgba(45, 52, 54, 0.06);
}

.transaction-delete-confirm {
    border: 1px dashed rgba(255, 118, 117, 0.4);
    border-radius: 0.75rem;
    padding: 1rem;
    background: rgba(255, 118, 117, 0.08);
}

@media (max-width: 576px) {
    .terminal-container {
        padding-inline: 0.75rem;
    }

    .category-button,
    .service-button {
        min-height: 140px;
    }
}
