/* ============================================================
   SYNC PANEL — Compacto, dentro do fluxo da sidebar
   ============================================================ */

.sync-section {
    padding: 6px 16px;
    border-bottom: 1px solid var(--cor-borda-leve);
    background: #fffbf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.sync-section.sync-hidden {
    display: none;
}

#sync-badge {
    display: none;
    background: var(--cor-aviso);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 3px;
    vertical-align: 1px;
}

#sync-status {
    font-size: 12px;
    flex: 1;
    min-width: 0;
}

.sync-ok {
    color: var(--cor-primaria-hover);
}

.sync-pending {
    color: var(--cor-aviso);
    font-weight: 600;
}

.sync-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.btn-sync {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

#btn-sync-all {
    background: var(--cor-primaria);
    color: #fff;
}

#btn-sync-all:hover {
    background: var(--cor-primaria-hover);
}

#btn-sync-all:disabled {
    background: #aaa;
    cursor: not-allowed;
}

#btn-sync-clear {
    background: transparent;
    color: var(--cor-erro);
    border: 1px solid var(--cor-erro);
    padding: 2px 7px;
}

#btn-sync-clear:hover {
    background: var(--cor-erro);
    color: #fff;
}

#sync-progress {
    display: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    appearance: none;
    margin-top: 4px;
}

#sync-progress::-webkit-progress-bar {
    background: var(--cor-borda-leve);
    border-radius: 2px;
}

#sync-progress::-webkit-progress-value {
    background: var(--cor-primaria);
    border-radius: 2px;
}

/* ============================================================
   TEMPORAL FILTER — Inline compacto
   ============================================================ */

.temporal-filter {
    padding: 6px 16px;
    border-bottom: 1px solid var(--cor-borda-leve);
}

.temporal-filter-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--cor-texto-terciario);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.temporal-row {
    display: flex;
    gap: 4px;
    align-items: center;
}

.temporal-row input[type="date"] {
    flex: 1;
    min-width: 0;
    padding: 4px 6px;
    border: 1px solid var(--cor-borda-forte);
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.temporal-row input[type="date"]:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

.btn-limpar-datas {
    padding: 4px 6px;
    background: none;
    border: 1px solid var(--cor-borda-forte);
    border-radius: var(--radius-sm);
    font-size: 10px;
    cursor: pointer;
    color: var(--cor-texto-terciario);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-limpar-datas:hover {
    border-color: var(--cor-erro);
    color: var(--cor-erro);
}
