/* Bloqueio domingo / dia fechado */
.tablet-bloqueio {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
}
.tablet-bloqueio-inner {
    background: var(--surface);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 420px;
}
.tablet-bloqueio-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.tablet-bloqueio h2 { font-size: 1.35rem; margin-bottom: .75rem; color: var(--danger, #DC2626); }
.tablet-bloqueio p { color: var(--text); line-height: 1.5; }

/* Tablet Ponto - Mobile First */
.page-tablet {
    background: linear-gradient(160deg, #EEF2FF 0%, #F8FAFC 50%, #F0FDF4 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.tablet-app { max-width: 720px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

.tablet-header {
    background: var(--surface);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}
.tablet-logo { display: flex; align-items: center; gap: 1rem; }
.logo-icon { font-size: 2.5rem; }
.tablet-logo h1 { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.tablet-logo p { font-size: .75rem; color: var(--text-muted); }
.tablet-clock {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
    background: var(--primary-light);
    padding: .5rem 1rem;
    border-radius: var(--radius);
}

.tablet-main { flex: 1; padding: 1.5rem; }

.step-panel { display: none; animation: fadeIn .3s ease; }
.step-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.step-panel h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; text-align: center; }
.step-desc { text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; font-size: .9375rem; }

.colab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.colab-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}
.colab-card * { pointer-events: none; }
.colab-card:hover, .colab-card.selected {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.colab-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .75rem;
    overflow: hidden;
}
.colab-avatar img { width: 100%; height: 100%; object-fit: cover; }
.colab-card h3 { font-size: .875rem; font-weight: 600; margin-bottom: .25rem; }
.colab-card span { font-size: .75rem; color: var(--text-muted); }

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: .8125rem;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.form-codigo { max-width: 360px; margin: 0 auto; }

.step-user {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
}

.otp-form { max-width: 400px; margin: 1.5rem auto 0; }
.otp-inputs {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.otp-digit:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-light);
}
.otp-info { text-align: center; font-size: .875rem; color: var(--text-muted); margin: 1rem 0; }

.confirm-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.confirm-card p {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .9375rem;
}
.confirm-card p span { color: var(--text-muted); }
.termos-check {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    max-width: 420px;
    margin: 0 auto 1.25rem;
    font-size: .8125rem;
    color: var(--text-muted);
    cursor: pointer;
}
.termos-check input { margin-top: .25rem; flex-shrink: 0; }

.comprovante-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}
.comprovante-icon { font-size: 4rem; margin-bottom: 1rem; }
.comprovante-info { margin: 1rem 0; }
.comp-tipo { font-size: 1.125rem; color: var(--primary); font-weight: 600; }
.comp-hash { font-size: .75rem; color: var(--text-muted); margin-top: .5rem; }
.comp-hash code { background: var(--bg); padding: .25rem .5rem; border-radius: 4px; word-break: break-all; }
.comp-nsr { font-size: .875rem; margin-top: .5rem; }
.comp-legal { font-size: .75rem; color: var(--text-muted); margin-top: 1rem; }
.comp-empresa { font-size: .875rem; color: var(--text-muted); margin-bottom: .5rem; }
.comp-whatsapp { color: var(--success); font-size: .875rem; margin-top: .75rem; }

/* Modal senha */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.modal-overlay[hidden] { display: none !important; }
.modal-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem 1.5rem;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: fadeIn .25s ease;
}
.modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}
.modal-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    overflow: hidden;
}
.modal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.modal-card h3 { text-align: center; font-size: 1.25rem; margin-bottom: .25rem; }
.modal-desc { text-align: center; color: var(--text-muted); font-size: .875rem; margin-bottom: 1.25rem; }

@media (max-width: 480px) {
    .tablet-header { flex-direction: column; gap: .75rem; text-align: center; }
    .colab-grid { grid-template-columns: repeat(2, 1fr); }
    .otp-digit { width: 42px; height: 50px; font-size: 1.25rem; }
}
