/* ── Painel de opções ─────────────────────────────── */
.opcoes-secao {
    margin-bottom: var(--spacing-4);
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid var(--color-border);
}
.opcoes-secao-titulo {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-2);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Toggle switch estilo iOS */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    cursor: pointer;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--color-border, #f0f0f0);
    gap: 8px;
    user-select: none;
}
.toggle-row:last-of-type { border-bottom: none; }

.toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.toggle-knob {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 20px;
    transition: background .2s;
    cursor: pointer;
}
.toggle-knob::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    transition: transform .2s;
}
.toggle-switch input:checked + .toggle-knob {
    background: var(--color-primary, #2563eb);
}
.toggle-switch input:checked + .toggle-knob::after {
    transform: translateX(16px);
}

/* ── Papel térmico ────────────────────────────────── */
.thermal-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 280px;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,.18));
}

.thermal-top-tear {
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        #e8e3d0 0, #e8e3d0 7px,
        #d4cdb8 7px, #d4cdb8 8px
    );
    border-radius: 3px 3px 0 0;
}

.thermal-body {
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 14.8px,
            rgba(0,0,0,.018) 14.8px,
            rgba(0,0,0,.018) 15px
        ),
        linear-gradient(
            to right,
            #f5eecc 0%,
            #fdf6dc 8%,
            #fef9e7 50%,
            #fdf6dc 92%,
            #f5eecc 100%
        );
    border-left:  1px solid #ddd3a8;
    border-right: 1px solid #ddd3a8;
}

.thermal-type-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 0.65rem;
}

.thermal-content {
    padding: 6px 10px 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 10.5px;
    line-height: 1.5;
    color: #1a1208;
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.thermal-cut {
    border-left: 1px solid #ddd3a8;
    border-right: 1px solid #ddd3a8;
    padding-bottom: 4px;
    background: #fef9e7;
}

.thermal-bottom {
    height: 14px;
    background: linear-gradient(to bottom, #e8e3d0, #c8c0a0);
    border-radius: 0 0 6px 6px;
}

/* ── Classes de linha do preview ─────────────────── */
.tp-linha    { display: block; white-space: pre; }
.tp-bold     { font-weight: 700; color: #0a0800; }
.tp-center   { text-align: center; white-space: normal; }
.tp-big      { font-size: 12.5px; }
.tp-small    { font-size: 9px; }
.tp-muted    { color: #6b6040; }
.tp-italic   { font-style: italic; }
.tp-mono     { font-family: 'Courier New', monospace; }
.tp-sep      { color: #a0906a; letter-spacing: 0.5px; }
