/* ========== صفحه اسکنر ========== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f8fafc;
}

.scanner-page {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
}

.scanner-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.back-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 4px;
    border-radius: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-btn:hover { background: #f1f5f9; }

.scanner-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.scanner-tab-btn {
    flex: 1;
    max-width: 200px;
    padding: 14px 0;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}
.scanner-tab-btn.active {
    border-color: #0096f5;
    color: #0096f5;
    background: #f0f9ff;
}
.scanner-tab-btn .material-icons { font-size: 28px; }

/* محتوای اصلی */
.scanner-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.iframe-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

/* نوار ورود دستی */
.id-input-area {
    flex-shrink: 0;
    background: #fff;
    padding: 10px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    z-index: 50;
}
.id-input-area input {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-family: inherit;
    direction: ltr;
    text-align: center;
    font-size: 0.9rem;
}
.id-input-area button {
    background: #0096f5;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}