﻿/* #BEGIN ***skladito/phone/phone.css*** */
/* 2026-03-15 */
/* SKLADITO Phone v2.16.0 */
/* =============================================
   phone.css — Phone-exclusive styles
   ============================================= */

/* === HEADER TOKENS === */

.header-tokens {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    margin-right: 10px;
    transition: background 0.2s;
}

.header-tokens:active {
    background: rgba(255, 255, 255, 0.3);
}

/* === CATEGORY GRID === */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.category-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.category-card:active {
    transform: scale(0.95);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
}

/* === QR PRINT === */

.qr-print-card {
    text-align: center;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    margin-bottom: 20px;
}

.qr-code-wrapper {
    display: inline-block;
    padding: 10px;
    background: white;
}

.qr-print-card .qr-name {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
}

.qr-print-card .qr-number {
    font-size: 48px;
    font-weight: 800;
    color: #333;
    margin-top: 12px;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
}

@media print {
    body * {
        visibility: hidden;
    }

    .qr-print-area,
    .qr-print-area * {
        visibility: visible;
    }

    .qr-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

/* === SCANNER === */

.scanner-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.scanner-mode-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.scanner-search-target {
    background: var(--brand-light);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 16px;
}

/* === ALL ITEMS TOGGLE === */

.all-items-toggle {
    background: var(--brand-light);
    border: 2px solid var(--brand-primary);
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
    cursor: pointer;
    margin-top: 12px;
}

/* === QR POOL PRINT === */

.a4-preview {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 210/297;
    border: 2px solid #ccc;
    background: white;
    margin: 20px auto;
    padding: 10px;
    display: grid;
    gap: 4px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.a4-label-cell {
    border: 1px dashed #ddd;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #444;
    transition: all 0.3s ease;
}

.qr-count-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
}

.qr-count-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--brand-primary);
    background: white;
    color: var(--brand-primary);
    font-size: 24px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-count-btn:active {
    background: var(--brand-primary);
    color: white;
}

.qr-count-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    min-width: 50px;
    text-align: center;
}

/* === ALERTS === */

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.settings-screen { background: #f5f5f5; min-height: calc(100vh - 60px); }
/* #END ***skladito/phone/phone.css*** */
